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

/darwin-on-arm/xnu/libsyscall/wrappers/unix03/
H A Dmodule.mk7 mmap.c \
H A Dmmap.c35 * mmap stub, with preemptory failures due to extra parameter checking
41 mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off) function
/darwin-on-arm/xnu/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,
/darwin-on-arm/xnu/bsd/sys/
H A Dmman.h143 * Error return from mmap()
145 #define MAP_FAILED ((void *)-1) /* [MF|SHM] mmap failed */
209 void * mmap(void *, size_t, int, int, int, off_t) __DARWIN_ALIAS(mmap); variable
239 * XXX kern_mman.c in the implementation of mmap().
/darwin-on-arm/xnu/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));
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dshared_memory_tests.c133 my_addr = (char *) mmap( NULL, 4096, (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 );
135 printf( "mmap call failed with error %d - \"%s\" \n", errno, strerror( errno) );
H A Dmemory_tests.c97 * Test madvise, mincore, minherit, mlock, mlock, mmap, mprotect, msync, munmap system calls.
218 my_addr = (char *) mmap( NULL, (my_page_size * 2), (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 );
220 printf( "mmap call failed with error %d - \"%s\" \n", errno, strerror( errno) );
333 my_addr = (char *) mmap( NULL, (my_page_size * 2), (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 );
335 printf( "mmap call failed with error %d - \"%s\" \n", errno, strerror( errno) );
/darwin-on-arm/xnu/SETUP/setsegname/
H A Dsetsegname.c100 *objAddr = (vm_offset_t)mmap(NULL /* address */, *objSize,
/darwin-on-arm/xnu/bsd/man/man2/
H A DMakefile117 mmap.2 \
/darwin-on-arm/xnu/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 },
/darwin-on-arm/xnu/SETUP/kextsymboltool/
H A Dkextsymboltool.c127 *objAddr = (vm_offset_t)mmap(NULL /* address */, *objSize,
/darwin-on-arm/xnu/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
323 * POSIX: mmap needs to update access time for mapped files
456 * mmap(MAP_FIXED) will replace any existing mappings in the
773 * Without mmap revocation, the caller could have asked for the max
1095 /* USV: No! need to obsolete map_fd()! mmap() already supports 64 bits */
1188 * POSIX: mmap needs to update access time for mapped files
/darwin-on-arm/xnu/tools/tests/kqueue_tests/
H A Dkqueue_file_tests.c198 * MMAP: mmap first 20 bytes of file, write HELLO_WORLD in
229 ftruncate(tmpfd, 1); /* So that mmap() doesn't fool us */
313 addr = mmap(0, 20, PROT_WRITE | PROT_READ, MAP_FILE | MAP_SHARED, tmpfd, 0);
777 init_test(&test, "2.1.15: Change a file with mmap()", FILE1, 1, 1, NOTE_WRITE, YES_EVENT);
863 init_test(&test, "2.1.14: mmap() a file but do not change it", FILE1, 1, 1, NOTE_WRITE, NO_EVENT);

Completed in 123 milliseconds