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

12

/xnu-2422.115.4/libsyscall/wrappers/unix03/
H A Dmmap.c37 * mmap stub, with preemptory failures due to extra parameter checking
43 mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off) function
/xnu-2422.115.4/tools/tests/perf_index/
H A Dstress_fault.c23 memblock = (char *)mmap(NULL, MEMSIZE, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
74 assert(mmap(memblock+region_start, region_len, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE | MAP_FIXED, -1, 0)!=0);
/xnu-2422.115.4/tools/tests/libMicro/
H A Dcascade_cond.c120 mxs = (pthread_mutex_t *)mmap(NULL,
130 cvs = (pthread_cond_t *)mmap(NULL,
140 conds = (int *)mmap(NULL,
H A DMakefile.benchmarks75 mmap \
H A Dmmap.c72 "notes: measures mmap()\n",
139 ts->ts_map[i] = (vchar_t *)mmap(NULL, optl,
144 ts->ts_map[i] = (vchar_t *)mmap(NULL, optl,
H A Dmunmap.c131 ts->ts_map[i] = (vchar_t *)mmap(NULL, optl,
136 ts->ts_map[i] = (vchar_t *)mmap(NULL, optl,
H A Dbench.sh598 mmap $OPTS -N "mmap_z8k" -l 8k -I 1000 -B 50 -f /dev/zero
599 mmap $OPTS -N "mmap_z128k" -l 128k -I 2000 -B 100 -f /dev/zero
600 mmap $OPTS -N "mmap_t8k" -l 8k -I 1000 -f $TFILE
601 mmap $OPTS -N "mmap_t128k" -l 128k -I 1000 -f $TFILE
602 mmap $OPTS -N "mmap_u8k" -l 8k -I 1000 -f $VFILE
603 mmap $OPTS -N "mmap_u128k" -l 128k -I 1000 -f $VFILE
604 mmap $OPTS -N "mmap_a8k" -l 8k -I 200 -f MAP_ANON
605 mmap $OPTS -N "mmap_a128k" -l 128k -I 200 -f MAP_ANON
608 mmap $OPTS -N "mmap_rz8k" -l 8k -I 2000 -r -f /dev/zero
609 mmap
[all...]
H A Dmsync.c132 if ((ts->ts_map = (char *)mmap(NULL, optl,
135 perror("mmap:");
H A Dmutex.c114 lock = (pthread_mutex_t *)mmap(NULL,
H A Dcoreos_bench.sh624 mmap $OPTS -N "mmap_t8k" -l 8k -I 1000 -f $TFILE
625 mmap $OPTS -N "mmap_t128k" -l 128k -I 1000 -f $TFILE
626 mmap $OPTS -N "mmap_u8k" -l 8k -I 1000 -f $VFILE
627 mmap $OPTS -N "mmap_u128k" -l 128k -I 1000 -f $VFILE
628 mmap $OPTS -N "mmap_a8k" -l 8k -I 200 -f MAP_ANON
629 mmap $OPTS -N "mmap_a128k" -l 128k -I 200 -f MAP_ANON
633 mmap $OPTS -N "mmap_rt8k" -l 8k -I 2000 -r -f $TFILE
634 mmap $OPTS -N "mmap_rt128k" -l 128k -I 20000 -r -f $TFILE
635 mmap $OPTS -N "mmap_ru8k" -l 8k -I 2000 -r -f $VFILE
636 mmap
[all...]
H A Dembd_bench.sh610 mmap $OPTS -N "mmap_t8k" -l 8k -I 1000 -f $TFILE
611 mmap $OPTS -N "mmap_t128k" -l 128k -I 1000 -f $TFILE
612 mmap $OPTS -N "mmap_u8k" -l 8k -I 1000 -f $VFILE
613 mmap $OPTS -N "mmap_u128k" -l 128k -I 1000 -f $VFILE
614 mmap $OPTS -N "mmap_a8k" -l 8k -I 200 -f MAP_ANON
615 mmap $OPTS -N "mmap_a128k" -l 128k -I 200 -f MAP_ANON
619 mmap $OPTS -N "mmap_rt8k" -l 8k -I 2000 -r -f $TFILE
620 mmap $OPTS -N "mmap_rt128k" -l 128k -I 20000 -r -f $TFILE
621 mmap $OPTS -N "mmap_ru8k" -l 8k -I 2000 -r -f $VFILE
622 mmap
[all...]
H A Dcascade_mutex.c112 locks = (pthread_mutex_t *)mmap(NULL,
H A Dmprotect.c125 seg = (vchar_t *)mmap(NULL, lm_optB * optl, PROT_READ | PROT_WRITE,
H A Dlibmicro.c396 tsdseg = (void *)mmap(NULL, lm_optT * lm_optP * tsdsize + 8192,
399 perror("mmap(tsd)");
756 b = (barrier_t *)mmap(NULL,
899 b = (barrier_t *)mmap(NULL,
/xnu-2422.115.4/bsd/sys/
H A Dmman.h131 * Error return from mmap()
133 #define MAP_FAILED ((void *)-1) /* [MF|SHM] mmap failed */
197 void * mmap(void *, size_t, int, int, int, off_t) __DARWIN_ALIAS(mmap); variable
227 * XXX kern_mman.c in the implementation of mmap().
/xnu-2422.115.4/tools/tests/libMicro/apple/
H A Dlmbench_lat_sig_prot.c230 ts->where = mmap(0,4096, PROT_READ, MAP_SHARED, fd, 0);
231 (void) fprintf(stderr, "benchmark_initworker: mmap result is %i\n",ts->where);
236 perror("mmap");
H A Dlmbench_bw_mmap_rd.c218 "notes: read and sum file via memory mapping mmap(2) interface");
301 CHK(state->buf = mmap(0, state->nbytes, PROT_READ,
324 CHK(p = mmap(0, state->nbytes, PROT_READ, MMAP_FLAGS, fd, 0));
/xnu-2422.115.4/tools/tests/xnu_quick_test/
H A Dshared_memory_tests.c151 my_addr = (char *) mmap( NULL, 4096, (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 );
153 printf( "mmap call failed with error %d - \"%s\" \n", errno, strerror( errno) );
H A Dmemory_tests.c31 * Test madvise, mincore, minherit, mlock, mlock, mmap, mprotect, msync, munmap system calls.
137 my_addr = (char *) mmap( NULL, (my_page_size * 2), (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 );
139 printf( "mmap call failed with error %d - \"%s\" \n", errno, strerror( errno) );
252 my_addr = (char *) mmap( NULL, (my_page_size * 2), (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 );
254 printf( "mmap call failed with error %d - \"%s\" \n", errno, strerror( errno) );
/xnu-2422.115.4/bsd/man/man2/
H A DMakefile117 mmap.2 \
/xnu-2422.115.4/SETUP/setsegname/
H A Dsetsegname.c84 *objAddr = (vm_offset_t)mmap(NULL /* address */, *objSize,
/xnu-2422.115.4/tools/tests/superpages/
H A Dtestsp.c5 * but the actually supported and documented interface is the mmap() one
6 * (see mmap(2)).
551 * The mmap() interface should work just as well!
559 addr = (uintptr_t)mmap((void*)addr, size, PROT_READ, MAP_ANON | MAP_PRIVATE, VM_FLAGS_SUPERPAGE_SIZE_2MB, 0);
561 sprintf(error, "mmap()");
607 { "mmap()", test_mmap },
/xnu-2422.115.4/SETUP/kextsymboltool/
H A Dkextsymboltool.c142 *objAddr = (vm_offset_t)mmap(NULL /* address */, *objSize,
/xnu-2422.115.4/bsd/kern/
H A Dkern_mman.c77 * Mapped file (mmap) interface to VM
139 mmap(proc_t p, struct mmap_args *uap, user_addr_t *retval) function
328 * POSIX: mmap needs to update access time for mapped files
462 * mmap(MAP_FIXED) will replace any existing mappings in the
780 * Without mmap revocation, the caller could have asked for the max
1106 /* USV: No! need to obsolete map_fd()! mmap() already supports 64 bits */
1201 * POSIX: mmap needs to update access time for mapped files
/xnu-2422.115.4/tools/tests/memorystatus/
H A Dmemorystatus.c1776 g_shared = mmap(NULL, sizeof(shared_mem_t), PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, 0, 0);
1778 printTestResult(__func__, false, "Failed mmap");

Completed in 69 milliseconds

12