/xnu-2782.1.97/libsyscall/mach/ |
H A D | mach_legacy.c | 39 #undef mach_task_self macro 42 mach_task_self(void) function
|
H A D | slot_name.c | 66 return mach_task_self();
|
H A D | mig_reply_port.c | 75 (void) mach_port_mod_refs(mach_task_self(), port, MACH_PORT_RIGHT_RECEIVE, -1); 77 (void) mach_port_deallocate(mach_task_self(), migport);
|
H A D | mach_vm.c | 235 // so pass mach_task_self() as the destination task receiving the allocation. 236 __syscall_logger(eventTypeFlags, (uintptr_t)mach_task_self(), (uintptr_t)*dataCnt, 0, *data, 0); 314 // so pass mach_task_self() as the destination task receiving the allocation. 315 __syscall_logger(eventTypeFlags, (uintptr_t)mach_task_self(), (uintptr_t)*dataCnt, 0, *data, 0);
|
/xnu-2782.1.97/tools/tests/xnu_quick_test/ |
H A D | machvm_tests.c | 28 kret = vm_allocate(mach_task_self(), &addr, regionsizes[i]*pagesize, VM_FLAGS_ANYWHERE); 37 kret = vm_deallocate(mach_task_self(), (vm_address_t)regionbuffers[4], regionsizes[4]*pagesize); 46 kret = vm_deallocate(mach_task_self(), (vm_address_t)regionbuffers[3], regionsizes[3]*pagesize); 57 kret = vm_protect(mach_task_self(), (vm_offset_t)regionbuffers[5], regionsizes[5]*pagesize, FALSE, VM_PROT_READ); 68 kret = vm_read(mach_task_self(), (vm_address_t)regionbuffers[5] + (regionsizes[5]-5)*pagesize, 5*pagesize, 79 vm_deallocate(mach_task_self(), newdata, 5*pagesize); 83 kret = vm_deallocate(mach_task_self(), newdata, 5*pagesize); 99 kret = vm_read_list(mach_task_self(), readlist, 2); 109 vm_deallocate(mach_task_self(), readlist[0].address, readlist[0].size); 110 vm_deallocate(mach_task_self(), readlis [all...] |
H A D | kqueue_tests.c | 36 my_kr = vm_allocate( mach_task_self(), 56 vm_deallocate( mach_task_self(), (vm_address_t)my_kmsg, size ); 66 my_kr = vm_allocate( mach_task_self(), 82 vm_deallocate( mach_task_self(), (vm_address_t)my_kmsg, PAGE_SIZE ); 156 kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 380 my_kr = mach_port_allocate( mach_task_self(), MACH_PORT_RIGHT_PORT_SET, &my_pset ); 386 my_kr = mach_port_allocate( mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &my_port ); 422 my_kr = mach_port_insert_member( mach_task_self(), my_port, my_pset ); 428 my_kr = mach_port_insert_right( mach_task_self(), my_port, my_port, MACH_MSG_TYPE_MAKE_SEND ); 481 my_kr = mach_port_mod_refs( mach_task_self(), my_pse [all...] |
H A D | 32bit_inode_tests.c | 65 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_bufp, (1024 * 5), VM_FLAGS_ANYWHERE); 71 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 139 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX); 142 vm_deallocate(mach_task_self(), (vm_address_t)my_bufp, (1024 * 5)); 178 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_bufferp, my_buffer_size, VM_FLAGS_ANYWHERE); 288 vm_deallocate(mach_task_self(), (vm_address_t)my_bufferp, my_buffer_size);
|
H A D | tests.c | 77 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 114 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX); 196 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 202 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_bufp, MY_BUFFER_SIZE, VM_FLAGS_ANYWHERE); 438 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX); 441 vm_deallocate(mach_task_self(), (vm_address_t)my_bufp, MY_BUFFER_SIZE); 460 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 619 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX); 639 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 645 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_ [all...] |
H A D | memory_tests.c | 48 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 65 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_test_page_p, my_page_size, VM_FLAGS_ANYWHERE); 98 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_bufp, (my_page_size * 10), VM_FLAGS_ANYWHERE); 326 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX); 329 vm_deallocate(mach_task_self(), (vm_address_t)my_test_page_p, my_page_size);
|
H A D | xattr_tests.c | 33 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 175 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
|
H A D | sched_tests.c | 137 kret = semaphore_create(mach_task_self(), &common_sema, SYNC_POLICY_FIFO /* not really, in this case */, 0); 143 kret = semaphore_create(mach_task_self(), &all_checked_in, SYNC_POLICY_FIFO, 0); 156 kret = semaphore_create(mach_task_self(), &ctxs[i].wait_to_start, SYNC_POLICY_FIFO /* not really, in this case */, 0);
|
H A D | socket_tests.c | 40 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_parent_pathp, 128, VM_FLAGS_ANYWHERE); 46 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_child_pathp, 128, VM_FLAGS_ANYWHERE); 392 vm_deallocate(mach_task_self(), (vm_address_t)my_parent_pathp, 128); 396 vm_deallocate(mach_task_self(), (vm_address_t)my_child_pathp, 128);
|
H A D | misc.c | 92 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 156 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
|
/xnu-2782.1.97/libsyscall/mach/mach/ |
H A D | mach_init.h | 77 #define mach_task_self() mach_task_self_ macro 78 #define current_task() mach_task_self()
|
/xnu-2782.1.97/libsyscall/wrappers/unix03/ |
H A D | munmap.c | 45 __syscall_logger(stack_logging_type_vm_deallocate, (uintptr_t)mach_task_self(), (uintptr_t)addr, len, 0, 0);
|
H A D | mmap.c | 70 __syscall_logger(stackLoggingFlags, (uintptr_t)mach_task_self(), (uintptr_t)len, 0, (uintptr_t)ptr, 0);
|
/xnu-2782.1.97/tools/tests/libMicro/apple/ |
H A D | vm_allocate.c | 164 //vm_deallocate( mach_task_self(), (vm_address_t) arena, arenaSize * vm_page_size); 197 vm_allocate( mach_task_self(), (vm_address_t *) &arena, arenaSize * vm_page_size, 1); 199 vm_deallocate( mach_task_self(), (vm_address_t) arena, arenaSize * vm_page_size); 229 if (vm_allocate( mach_task_self(), (vm_address_t *) &arena, arenaSize * vm_page_size, 1)) 231 if (vm_deallocate( mach_task_self(), (vm_address_t) arena, arenaSize * vm_page_size))
|
H A D | lb_mmtest.c | 188 ret = vm_deallocate(mach_task_self(), 372 ret = mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, 378 ret = mach_port_insert_right(mach_task_self(), ts->server_port, 384 ret = task_get_bootstrap_port(mach_task_self(), &bsport); 401 ret = mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, 408 ret = task_get_bootstrap_port(mach_task_self(), &bsport);
|
/xnu-2782.1.97/tools/tests/superpages/ |
H A D | testsp.c | 178 kr = mach_vm_allocate(mach_task_self(), &global_addr, global_size, VM_FLAGS_ANYWHERE | VM_FLAGS_SUPERPAGE_SIZE_2MB); 201 kr = mach_vm_deallocate(mach_task_self(), global_addr, global_size); 223 kr = mach_vm_allocate(mach_task_self(), &addr, size, VM_FLAGS_ANYWHERE | VM_FLAGS_SUPERPAGE_SIZE_ANY); 227 kr = mach_vm_deallocate(mach_task_self(), addr, size); 249 kr = mach_vm_allocate(mach_task_self(), &addr, size, VM_FLAGS_SUPERPAGE_SIZE_2MB); 253 kr = mach_vm_deallocate(mach_task_self(), addr, size); 270 kr = mach_vm_allocate(mach_task_self(), &addr, size, VM_FLAGS_SUPERPAGE_SIZE_2MB); 290 kr = mach_vm_allocate(mach_task_self(), &addr, size, VM_FLAGS_SUPERPAGE_SIZE_2MB); 311 kr = mach_vm_allocate(mach_task_self(), &addr, size, VM_FLAGS_ANYWHERE | VM_FLAGS_SUPERPAGE_SIZE_2MB); 313 kr = mach_vm_deallocate(mach_task_self(), add [all...] |
H A D | measure_tlbs.c | 31 kr = mach_vm_allocate(mach_task_self(), &addr, size, VM_FLAGS_ANYWHERE | (superpages? VM_FLAGS_SUPERPAGE_SIZE_2MB : VM_FLAGS_SUPERPAGE_NONE)); 101 mach_vm_deallocate(mach_task_self(), addr, size);
|
/xnu-2782.1.97/libsyscall/wrappers/legacy/ |
H A D | munmap.c | 68 __syscall_logger(stack_logging_type_vm_deallocate, (uintptr_t)mach_task_self(), (uintptr_t)addr, len, 0, 0);
|
/xnu-2782.1.97/tools/tests/MPMMTest/ |
H A D | MPMMtest.c | 227 ret = mach_port_allocate(mach_task_self(), 238 ret = mach_port_allocate(mach_task_self(), 247 ret = mach_port_move_member(mach_task_self(), 260 ret = mach_port_insert_right(mach_task_self(), 269 ret = task_get_bootstrap_port(mach_task_self(), &bsport); 308 ret = mach_port_allocate(mach_task_self(), 391 ret = vm_deallocate(mach_task_self(), 519 ret = task_get_bootstrap_port(mach_task_self(), &bsport); 660 ret = task_get_bootstrap_port(mach_task_self(), &bsport);
|
H A D | KQMPMMtest.c | 221 ret = mach_port_allocate(mach_task_self(), 229 ret = mach_port_allocate(mach_task_self(), 237 ret = mach_port_insert_member(mach_task_self(), 245 ret = mach_port_insert_right(mach_task_self(), 254 ret = task_get_bootstrap_port(mach_task_self(), &bsport); 293 ret = mach_port_allocate(mach_task_self(), 443 ret = vm_deallocate(mach_task_self(), 572 ret = task_get_bootstrap_port(mach_task_self(), &bsport); 713 ret = task_get_bootstrap_port(mach_task_self(), &bsport);
|
/xnu-2782.1.97/tools/tests/execperf/ |
H A D | printexecinfo.c | 58 kret = task_info(mach_task_self(), TASK_DYLD_INFO,
|
/xnu-2782.1.97/tools/tests/affinity/ |
H A D | tags.c | 115 ret = task_for_pid(mach_task_self(), pid, &port);
|