Searched refs:mmap (Results 1 - 25 of 281) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/apr/mmap/unix/
H A Dcommon.c33 APR_DECLARE(apr_status_t) apr_mmap_offset(void **addr, apr_mmap_t *mmap,
36 if (offset < 0 || (apr_size_t)offset > mmap->size)
39 (*addr) = (char *) mmap->mm + offset;
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/
H A Dmman.h35 #define mmap64(_a,_b,_c,_d,_e,_f) mmap(_a,_b,_c,_d,_e,_f)
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/
H A Dtst.args.d35 syscall::mmap*:entry
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cpp20 INTERCEPTOR(void *, mmap, void *addr, SIZE_T length, int prot, int flags,
22 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset);
41 INTERCEPT_FUNCTION(mmap);
/freebsd-11-stable/contrib/apr-util/buckets/
H A Dapr_buckets_mmap.c28 if (!m->mmap) {
33 ok = apr_mmap_offset(&addr, m->mmap, b->start);
51 m->mmap = NULL;
60 if (m->mmap) {
61 apr_pool_cleanup_kill(m->mmap->cntxt, m, mmap_bucket_cleanup);
62 apr_mmap_delete(m->mmap);
78 m->mmap = mm;
106 apr_mmap_t *mm = m->mmap;
/freebsd-11-stable/sys/dev/spibus/
H A Dspigen.c231 struct spigen_mmap *mmap; local
234 if ((error = devfs_get_cdevpriv((void **)&mmap)) != 0)
237 if (mmap->bufsize < stm->stm_command_length + stm->stm_data_length)
240 transfer.tx_cmd = transfer.rx_cmd = (void *)((uintptr_t)mmap->kvaddr);
243 (void *)((uintptr_t)mmap->kvaddr + stm->stm_command_length);
286 struct spigen_mmap *mmap = arg; local
288 if (mmap->kvaddr != 0)
289 pmap_qremove(mmap->kvaddr, mmap->bufsize / PAGE_SIZE);
290 if (mmap
299 struct spigen_mmap *mmap; local
[all...]
/freebsd-11-stable/contrib/serf/buckets/
H A Dmmap_buckets.c30 apr_mmap_t *mmap; member in struct:__anon70
44 ctx->mmap = file_mmap;
47 ctx->remaining = ctx->mmap->size;
66 apr_mmap_offset((void**)data, ctx->mmap, ctx->offset);
86 apr_mmap_offset((void**)data, ctx->mmap, ctx->offset);
/freebsd-11-stable/contrib/apr/
H A Dbuild.conf17 dso file_io locks memory misc mmap network_io poll random
/freebsd-11-stable/contrib/gcc/config/
H A Dhost-solaris.c46 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE,
49 /* Solaris isn't good about honoring the mmap START parameter
70 addr = mmap (base, size,
H A Dhost-hpux.c60 addr = mmap ((void *)TRY_EMPTY_VM_SPACE, size, PROT_READ | PROT_WRITE,
75 It's not possibly to reliably mmap a file using MAP_PRIVATE to
77 if mmap with MAP_PRIVATE works. If it does, we are off to the
78 races. If it doesn't, we try an anonymous private mmap since the
99 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset);
107 /* Try to make an anonymous private mmap at the desired location. */
108 addr = mmap (base, size, PROT_READ | PROT_WRITE,
H A Dhost-linux.c52 address chosen by mmap in step one.
104 addr = mmap ((void *)TRY_EMPTY_VM_SPACE, size, PROT_READ | PROT_WRITE,
139 /* If it isn't, then accept the address that mmap selected as fine. */
144 buffer = mmap (0, buffer_size, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0);
145 addr = mmap (0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
158 It's not possibly to reliably mmap a file using MAP_PRIVATE to
160 if mmap with MAP_PRIVATE works. If it does, we are off to the
161 races. If it doesn't, we try an anonymous private mmap since the
182 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset);
190 /* Try to make an anonymous private mmap a
[all...]
H A Dhost-darwin.c67 mmap_result = mmap (addr, sz,
71 /* The file might not be mmap-able. */
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mmap.c82 static char path[] = "mmap";
166 atf_tc_set_md_var(tc, "descr", "Test mmap(2) with a block device");
198 map = mmap(NULL, 4096, PROT_READ, MAP_FILE, fd, 0);
212 atf_tc_set_md_var(tc, "descr", "Test error conditions of mmap(2)");
221 map = mmap(NULL, 3, PROT_READ, MAP_FILE|MAP_PRIVATE, -1, 0);
227 map = mmap(&addr, page, PROT_READ, MAP_FIXED|MAP_PRIVATE, -1, 0);
233 map = mmap(NULL, page, PROT_READ, MAP_ANON|MAP_PRIVATE, INT_MAX, 0);
242 atf_tc_set_md_var(tc, "descr", "Test uvm page loanout with mmap(2)");
257 vp = mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE,
269 vp = mmap(NUL
[all...]
H A Dt_mincore.c119 map = mmap(NULL, page, PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
178 addr = mmap(NULL, (size_t)st.st_size, PROT_READ,
200 addr = mmap(NULL, npgs * page, PROT_READ | PROT_WRITE,
203 addr = mmap(NULL, npgs * page, PROT_READ | PROT_WRITE,
208 atf_tc_skip("could not mmap wired anonymous test area, system "
221 addr = mmap(NULL, npgs * page, PROT_READ | PROT_WRITE,
243 addr2 = mmap(NULL, npgs * page, PROT_READ, MAP_ANON, -1, (off_t)0);
244 addr3 = mmap(NULL, npgs * page, PROT_NONE, MAP_ANON, -1, (off_t)0);
247 atf_tc_skip("could not mmap more anonymous test pages with "
/freebsd-11-stable/sys/dev/patm/
H A Dif_patm.c92 for (i = 0; i < sc->mmap->sram * 1024; i += 4)
98 /* IDT_CFG_NOIDLE | */ sc->mmap->rxtab;
114 patm_nor_write(sc, IDT_NOR_TSTB, sc->mmap->tst1base << 2);
137 IDT_RXFD(sc->mmap->rxfifo_addr, sc->mmap->rxfifo_code));
148 IDT_ABRSTD(sc->mmap->abrstd_addr, sc->mmap->abrstd_code));
149 for (i = 0; i < sc->mmap->abrstd_size; i++)
150 patm_sram_write(sc, sc->mmap->abrstd_addr + i, 0);
157 patm_sram_write(sc, sc->mmap
[all...]
/freebsd-11-stable/contrib/groff/src/libs/libbib/
H A Dmap.c43 char *p = (char *)mmap((void *)0, (size_t)nbytes, PROT_READ,
47 /* mmap() shouldn't return 0 since MAP_FIXED wasn't specified. */
/freebsd-11-stable/sys/dev/xen/privcmd/
H A Dprivcmd.c249 struct ioctl_privcmd_mmapbatch *mmap; local
263 mmap = (struct ioctl_privcmd_mmapbatch *)arg;
265 if ((mmap->num == 0) ||
266 ((mmap->addr & PAGE_MASK) != 0)) {
272 error = vm_map_lookup(&map, mmap->addr, VM_PROT_NONE, &entry,
278 if ((entry->start != mmap->addr) ||
279 (entry->end != mmap->addr + (mmap->num * PAGE_SIZE))) {
294 add.foreign_domid = mmap->dom;
300 num = MIN(mmap
[all...]
/freebsd-11-stable/sys/geom/raid/
H A Dmd_intel.c264 struct intel_raid_map *mmap; local
268 mmap = &mvol->map[0];
270 mmap = (struct intel_raid_map *)
271 &mmap->disk_idx[mmap->total_disks];
273 return ((struct intel_raid_map *)mmap);
280 struct intel_raid_map *mmap; local
286 mmap = intel_get_map(mvol, mvol->migr_state ? 1 : 0);
288 &mmap->disk_idx[mmap
294 intel_get_map_offset(struct intel_raid_map *mmap) argument
303 intel_set_map_offset(struct intel_raid_map *mmap, off_t offset) argument
311 intel_get_map_disk_sectors(struct intel_raid_map *mmap) argument
320 intel_set_map_disk_sectors(struct intel_raid_map *mmap, off_t disk_sectors) argument
328 intel_set_map_stripe_count(struct intel_raid_map *mmap, off_t stripe_count) argument
445 struct intel_raid_map *mmap; local
587 struct intel_raid_map *mmap, *mmap1; local
1254 struct intel_raid_map *mmap; local
[all...]
/freebsd-11-stable/tests/sys/vm/
H A Dmmap_test.c76 p = mmap((void *)map_at_zero_tests[i].addr, PAGE_SIZE,
81 "mmap(%p, ...) failed", map_at_zero_tests[i].addr);
84 "mmap(%p, ...) succeeded: p=%p\n",
97 p = mmap(NULL, pagesize, prot, flags, fd, 0);
192 p1 = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
195 p2 = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
211 p3 = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
231 p1 = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
234 p2 = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
250 p3 = mmap(NUL
[all...]
/freebsd-11-stable/tools/test/upsdl/
H A Dupsdl.c76 addr = mmap(NULL,FILESIZE, PROT_READ | PROT_WRITE , MAP_SHARED, fd, 0);
97 /* mmap a 2 page buffer - first page is from fd1, second page from fd2 */
103 addr = mmap(NULL,pagesize*2, PROT_READ | PROT_WRITE , MAP_SHARED, fd1, 0);
111 addr = mmap(buffer + pagesize,pagesize, PROT_READ | PROT_WRITE , MAP_FIXED |
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_subr.c36 return (mmap(NULL, size, PROT_READ | PROT_WRITE,
/freebsd-11-stable/contrib/gcc/config/i386/
H A Dhost-cygwin.c50 open file descriptor if the host would like to probe with mmap. */
68 base = mmap (NULL, sz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
/freebsd-11-stable/tools/regression/nfsmmap/test1/
H A Dtest1.c36 addr = mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
/freebsd-11-stable/tools/regression/nfsmmap/test2/
H A Dtest2.c34 addr = mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
/freebsd-11-stable/usr.bin/xlint/lint2/
H A Dmem2.c83 /* use mmap() instead of malloc() to avoid malloc overhead. */
86 mbuf = mmap(NULL, mblklen, prot, flags, -1, (off_t)0);

Completed in 493 milliseconds

1234567891011>>