Searched refs:mmap (Results 51 - 75 of 281) sorted by relevance

1234567891011>>

/freebsd-11-stable/usr.bin/tail/
H A Dmisc.c110 if ((mip->start = mmap(NULL, mip->maplen, PROT_READ, MAP_SHARED,
/freebsd-11-stable/lib/libc/tests/string/
H A Dwcsnlen_test.c46 buf = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0);
/freebsd-11-stable/sys/dev/patm/
H A Dif_patm_attach.c374 sc->mmap = &idt_mmap[0];
376 sc->mmap = &idt_mmap[1];
378 sc->mmap = &idt_mmap[2];
380 sc->mmap = &idt_mmap[3];
382 IFP2IFATM(sc->ifp)->mib.vci_bits = sc->mmap->vcbits - IFP2IFATM(sc->ifp)->mib.vpi_bits;
383 IFP2IFATM(sc->ifp)->mib.max_vccs = sc->mmap->max_conn;
385 patm_printf(sc, "%uK x 32 SRAM; %u connections\n", sc->mmap->sram,
386 sc->mmap->max_conn);
394 sc->tst_soft = malloc(sizeof(uint32_t) * sc->mmap->tst_size,
424 sc->vccs = malloc(sizeof(sc->vccs[0]) * sc->mmap
[all...]
/freebsd-11-stable/contrib/ofed/libcxgb4/
H A Dverbs.c203 chp->cq.queue = mmap(NULL, chp->cq.memsize, PROT_READ|PROT_WRITE,
208 chp->cq.ugts = mmap(NULL, c4iw_page_size, PROT_WRITE, MAP_SHARED,
342 dbva = mmap(NULL, c4iw_page_size, PROT_WRITE, MAP_SHARED,
348 qhp->wq.sq.queue = mmap(NULL, qhp->wq.sq.memsize,
354 dbva = mmap(NULL, c4iw_page_size, PROT_WRITE, MAP_SHARED,
359 qhp->wq.rq.queue = mmap(NULL, qhp->wq.rq.memsize,
453 dbva = mmap(NULL, c4iw_page_size, PROT_WRITE, MAP_SHARED,
470 qhp->wq.sq.queue = mmap(NULL, qhp->wq.sq.memsize,
476 dbva = mmap(NULL, c4iw_page_size, PROT_WRITE, MAP_SHARED,
492 qhp->wq.rq.queue = mmap(NUL
[all...]
/freebsd-11-stable/tests/sys/posixshm/
H A Dposixshm_test.c116 page = mmap(0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
118 atf_tc_fail("mmap failed; errno=%d", errno);
137 page = mmap(0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
139 atf_tc_fail("mmap(2) failed; errno=%d", errno);
167 page = mmap(0, pagesize, PROT_READ, MAP_SHARED, fd, 0);
169 atf_tc_fail("mmap(2) failed; errno=%d", errno);
195 page = mmap(0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
197 atf_tc_fail("mmap(PROT_WRITE) succeeded unexpectedly");
200 atf_tc_fail("mmap(PROT_WRITE) didn't fail with EACCES; "
386 page = mmap(
[all...]
/freebsd-11-stable/usr.sbin/acpi/acpidump/
H A Dacpi.c1202 ACPI_NFIT_MEMORY_MAP *mmap; local
1241 mmap = (ACPI_NFIT_MEMORY_MAP *)nfit;
1242 printf("\tDeviceHandle=%u\n", (u_int)mmap->DeviceHandle);
1243 printf("\tPhysicalId=%u\n", (u_int)mmap->PhysicalId);
1244 printf("\tRegionId=%u\n", (u_int)mmap->RegionId);
1245 printf("\tRangeIndex=%u\n", (u_int)mmap->RangeIndex);
1246 printf("\tRegionIndex=%u\n", (u_int)mmap->RegionIndex);
1247 printf("\tRegionSize=0x%016jx\n", (uintmax_t)mmap->RegionSize);
1249 (uintmax_t)mmap->RegionOffset);
1250 printf("\tAddress=0x%016jx\n", (uintmax_t)mmap
[all...]
/freebsd-11-stable/lib/libc/gen/
H A Dnlist.c122 /* Check for files too large to mmap. */
131 * We do not just mmap the string table, as it probably
139 a_out_mmap = mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_PRIVATE, fd, (off_t)0);
261 /* Make sure it's not too big to mmap */
267 /* mmap section header table */
268 base = mmap(NULL, (size_t)shdr_size, PROT_READ, MAP_PRIVATE, fd,
290 /* Check for files too large to mmap. */
301 base = mmap(NULL, (size_t)symstrsize, PROT_READ, MAP_PRIVATE, fd,
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dmlx4.c127 hca_clock_page = mmap(NULL, mdev->page_size,
134 "but failed to mmap() hca core clock page.\n");
198 context->uar = mmap(NULL, dev->page_size, PROT_WRITE,
204 context->bf_page = mmap(NULL, dev->page_size,
209 "but failed to mmap() BlueFlame page.\n");
/freebsd-11-stable/contrib/libucl/tests/
H A Dtest_speed.c86 map = mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fin, 0);
88 perror ("mmap failed");
/freebsd-11-stable/tools/regression/p1003_1b/
H A Dfifo.c111 p = (long *)mmap(0, sizeof(*p),
115 err(errno, "mmap");
H A Dyield.c91 p = (int *)mmap(0, sizeof(int),
95 err(errno, "mmap");
/freebsd-11-stable/tools/regression/posixsem2/
H A Dsemtest.c28 s = (sem_t *)mmap(NULL, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED,
31 err(1, "mmap failed");
/freebsd-11-stable/usr.bin/gprof/
H A Delf.c81 if ((mapbase = mmap(0, s.st_size, PROT_READ, MAP_SHARED, fd, 0)) ==
83 err(1, "cannot mmap %s", filename);
/freebsd-11-stable/contrib/mdocml/
H A Ddbm_map.c78 if ((dbm_base = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED,
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/profile/
H A DWindowsMMap.c3 * https://git.uclibc.org/uClibc/tree/utils/mmap-windows.c
5 /* mmap() replacement for Windows
28 void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset) function
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/go/
H A Dtest.c66 buf0 = mmap(go_heap, 16384, PROT_READ | PROT_WRITE,
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_openbsd.cpp46 return (uptr)mmap(addr, length, prot, flags, fd, offset);
H A Dsanitizer_solaris.cpp64 DECLARE__REAL_AND_INTERNAL64(uptr, mmap, void *addr, uptr /*size_t*/ length,
66 return (uptr)_REAL64(mmap)(addr, length, prot, flags, fd, offset);
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-app-init-linux.c154 * region is allocated using shm_open and mmap. The current
222 void *ptr = mmap(NULL, shared_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
225 perror("Failed to setup CVMX_SHARED(mmap copy)");
235 ptr = mmap(&__cvmx_shared_start, shared_size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, 0);
238 perror("Failed to setup CVMX_SHARED(mmap final)");
273 /* Although not strictly necessary, we are going to mmap() the wired
/freebsd-11-stable/sys/kern/
H A Dcapabilities.conf402 mmap
/freebsd-11-stable/lib/libkvm/
H A Dkvm_powerpc.c101 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0);
128 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0);
H A Dkvm_powerpc64.c101 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0);
128 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0);
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dfs.h141 int (*mmap)(struct file *, struct vm_area_struct *); member in struct:file_operations
302 return (file->f_op->mmap(file, vma));
/freebsd-11-stable/lib/libc/x86/sys/
H A D__vdso_gettc.c213 new_map = mmap(NULL, PAGE_SIZE, PROT_READ, MAP_SHARED, fd, 0);
245 hyperv_ref_tsc = mmap(NULL, sizeof(*hyperv_ref_tsc), PROT_READ,
/freebsd-11-stable/contrib/unbound/compat/
H A Darc4random.c149 if ((rs = mmap(NULL, sizeof(*rs), PROT_READ|PROT_WRITE,
164 if ((rsx = mmap(NULL, sizeof(*rsx), PROT_READ|PROT_WRITE,

Completed in 172 milliseconds

1234567891011>>