| /xnu-8019.80.24/osfmk/kern/ |
| H A D | extmod_statistics.c | 77 if ((ctask == kernel_task) || (target == TASK_NULL)) { in extmod_statistics_incr_task_for_pid() 100 if (ttask == TASK_NULL) { in extmod_statistics_incr_thread_set_state() 116 if ((ctask == kernel_task) || (target == TASK_NULL)) { in extmod_statistics_incr_thread_create()
|
| H A D | ipc_tt.c | 205 if (parent == TASK_NULL) { in ipc_task_init() 1231 if (task == TASK_NULL) { in mach_task_is_self() 1822 if (task == TASK_NULL) { in task_get_special_port_internal() 1929 if (task == TASK_NULL) { in task_get_special_port_from_user() 2053 if (task == TASK_NULL) { in task_set_special_port() 2111 if (task == TASK_NULL) { in task_set_special_port_internal() 2204 if ((task == TASK_NULL) || in mach_ports_register() 2285 if (task == TASK_NULL) { in mach_ports_lookup() 2345 if (victim == TASK_NULL || (victim == kernel_task && !allow_kern_task)) { in task_conversion_eval_internal() 2450 return TASK_NULL; in convert_port_to_locked_task_with_flavor() [all …]
|
| H A D | task_ref.c | 285 if (task == TASK_NULL) { in task_reference_grp() 340 if (task == TASK_NULL) { in task_deallocate_grp() 526 if (task == TASK_NULL) { in task_reference_grp() 537 if (task == TASK_NULL) { in task_deallocate_grp()
|
| H A D | task.c | 959 …if (task_create_internal(TASK_NULL, NULL, NULL, FALSE, TRUE, TRUE, TF_NONE, TPF_NONE, TWF_NONE, &k… in task_init() 961 …if (task_create_internal(TASK_NULL, NULL, NULL, FALSE, FALSE, FALSE, TF_NONE, TPF_NONE, TWF_NONE, … in task_init() 999 if (parent_task == TASK_NULL) { in task_create() 1051 assert(kernel_task == TASK_NULL); in init_task_ledgers() 1514 if (parent_task != TASK_NULL) { in task_create_internal() 1594 if (kernel_task == TASK_NULL) { in task_create_internal() 1848 if (task == TASK_NULL) { in task_deallocate_internal() 2264 if (task == TASK_NULL) { in task_terminate() 2441 assert(task != TASK_NULL); in task_port_no_senders() 2475 if (task != TASK_NULL) { in task_port_with_flavor_no_senders() [all …]
|
| H A D | sync_sema.c | 77 return semaphore->owner != TASK_NULL; in semaphore_active() 109 if (task == TASK_NULL || value < 0 || (policy & ~SYNC_POLICY_USER_MASK)) { in semaphore_create() 180 semaphore->owner = TASK_NULL; in semaphore_destroy_internal() 241 assert(semaphore->owner == TASK_NULL); in semaphore_free() 250 if (task == TASK_NULL) { in semaphore_free() 294 if (task == TASK_NULL) { in semaphore_destroy()
|
| H A D | ux_handler.c | 141 task_t target_task = TASK_NULL; in catch_mach_exception_raise() 148 if ((target_task = convert_port_to_task(task_port)) == TASK_NULL) { in catch_mach_exception_raise()
|
| H A D | task_ident.c | 144 if (task == TASK_NULL || task == kernel_task) { in task_create_identity_token() 240 assert(task != TASK_NULL); in task_identity_token_get_task_port()
|
| H A D | bsd_kern.c | 798 return TASK_NULL; in get_threadtask_early() 1217 assert(task != TASK_NULL); in fill_task_rusage() 1248 assert(task != TASK_NULL); in fill_task_io_rusage() 1268 assert(task != TASK_NULL); in fill_task_qos_rusage() 1299 assert(task != TASK_NULL); in fill_task_monotonic_rusage() 1315 assert(task != TASK_NULL); in get_task_logical_writes()
|
| H A D | coalition.c | 938 coal->j.leader = TASK_NULL; in i_coal_jetsam_init() 968 assert(coal->j.leader == TASK_NULL); in i_coal_jetsam_dealloc() 1033 if (cj->leader != TASK_NULL) { in i_coal_jetsam_set_taskrole() 1479 assert(task != TASK_NULL); in task_coalition_update_gpu_stats() 2169 return TASK_NULL; in kdp_coalition_get_leader() 2175 return TASK_NULL; in kdp_coalition_get_leader() 2181 task_t leader = TASK_NULL; in coalition_get_leader() 2184 return TASK_NULL; in coalition_get_leader() 2193 if (leader != TASK_NULL) { in coalition_get_leader() 2387 coal->j.leader == TASK_NULL) { in coalition_get_sort_list()
|
| H A D | suid_cred.c | 169 if (task == TASK_NULL || task != current_task()) { in task_create_suid_cred()
|
| H A D | ipc_kobject.c | 444 task_t task = TASK_NULL; in ipc_kobject_server_internal() 481 if (task != TASK_NULL) { in ipc_kobject_server_internal() 1623 if (task != TASK_NULL && task == space->is_task) { in ipc_kobject_label_substitute_task()
|
| /xnu-8019.80.24/osfmk/corpses/ |
| H A D | corpse.c | 441 if (task == kernel_task || task == TASK_NULL) { in task_generate_corpse() 504 task_t new_task = TASK_NULL; in task_enqueue_exception_with_corpse() 519 assert(new_task != TASK_NULL); in task_enqueue_exception_with_corpse() 549 task_t new_task = TASK_NULL; in task_generate_corpse_internal() 592 is_64bit_data = (task == TASK_NULL) ? is_64bit_addr : task_get_64bit_data(task); in task_generate_corpse_internal() 674 if (new_task != TASK_NULL) { in task_generate_corpse_internal() 753 if (task == TASK_NULL || task_is_a_corpse_fork(task)) { in task_map_corpse_info_64() 757 if (corpse_task == TASK_NULL || !task_is_a_corpse(corpse_task) || in task_map_corpse_info_64()
|
| /xnu-8019.80.24/bsd/vm/ |
| H A D | vm_unix.c | 740 if (t1 == TASK_NULL) { in pid_for_task() 885 task_t t1 = TASK_NULL; in task_for_pid() 886 task_t task = TASK_NULL; in task_for_pid() 906 if (t1 == TASK_NULL) { in task_for_pid() 930 if (p->task == TASK_NULL) { in task_for_pid() 990 task = TASK_NULL; in task_for_pid() 997 task = TASK_NULL; in task_for_pid() 1012 if (task != TASK_NULL) { in task_for_pid() 1042 task_t t1 = TASK_NULL; in task_name_for_pid() 1053 if (t1 == TASK_NULL) { in task_name_for_pid() [all …]
|
| /xnu-8019.80.24/osfmk/kperf/ |
| H A D | pet.c | 496 task_t task = TASK_NULL; in kppet_tasks_prepare() 530 assert(task != TASK_NULL); in kppet_sample_tasks() 533 kppet.g_tasks[i] = TASK_NULL; in kppet_sample_tasks()
|
| H A D | kperf.c | 315 if (task == TASK_NULL) { in kperf_port_to_pid()
|
| /xnu-8019.80.24/osfmk/mach/ |
| H A D | mach_types.h | 285 #define TASK_NULL ((task_t) NULL) macro 315 #define TASK_NULL ((task_t) 0) macro
|
| /xnu-8019.80.24/tests/ |
| H A D | task_policy.c | 82 task_t task = TASK_NULL; 252 task_t task = TASK_NULL; 372 task_t task = TASK_NULL; 542 task_t task = TASK_NULL;
|
| /xnu-8019.80.24/osfmk/ipc/ |
| H A D | ipc_importance.c | 394 assert(TASK_NULL == task_elem->iit_task); in ipc_importance_release_locked() 864 if (TASK_NULL == target_task) { in ipc_importance_task_process_updates() 1120 if (need_update && TASK_NULL != temp_task_imp->iit_task) { in ipc_importance_task_propagate_assertion_locked() 1370 if (KERN_FAILURE == ret && target_task != TASK_NULL) { in ipc_importance_task_hold_legacy_external_assertion() 1464 if (KERN_FAILURE == ret && TASK_NULL != target_task) { in ipc_importance_task_drop_legacy_external_assertion() 1484 if (TASK_NULL == target_task || in ipc_importance_task_externalize_legacy_assertion() 1545 if (TASK_NULL == target_task) { in ipc_importance_task_update_live_donor() 1910 assert(TASK_NULL != task); in ipc_importance_for_task() 1986 if (task != TASK_NULL && task->task_imp_base != IIT_NULL) { in task_importance_update_owner_info() 2109 task_imp->iit_task = TASK_NULL; in ipc_importance_disconnect_task() [all …]
|
| H A D | ipc_port.c | 2365 task_t receiver = TASK_NULL; in ipc_port_get_receiver_task() 2574 if (space->is_task != TASK_NULL && in ipc_port_importance_delta_internal() 2806 assert(space->is_task != TASK_NULL); in ipc_port_copyout_send_pinned() 3321 if (task != TASK_NULL) { in ipc_port_init_debug()
|
| /xnu-8019.80.24/iokit/Tests/ |
| H A D | TestIOMemoryDescriptor.cpp | 360 …MemoryDescriptor::withAddressRanges(&ranges[0], 2, kIODirectionOutIn | kIOMemoryRemote, TASK_NULL); in IOMemoryRemoteTest() 622 bmd = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in AllocationNameTest() 746 IOBufferMemoryDescriptor * bmd = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in IOMDContextTest() 899 md1 = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in IOMemoryDescriptorTest() 965 md1 = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in IOMemoryDescriptorTest() 973 md2 = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in IOMemoryDescriptorTest()
|
| /xnu-8019.80.24/bsd/kern/ |
| H A D | process_policy.c | 584 task_set_no_smt(TASK_NULL); in handle_no_smt() 608 task_set_tecs(TASK_NULL); in handle_tecs()
|
| H A D | kern_fork.c | 582 assert(child_task != TASK_NULL); in fork() 682 …const int parent_64bit_data = (parent_task == TASK_NULL) ? parent_64bit_addr : task_get_64bit_data… in cloneproc()
|
| /xnu-8019.80.24/osfmk/i386/ |
| H A D | machine_task.c | 296 if (parent_task != TASK_NULL) { in machine_task_init()
|
| /xnu-8019.80.24/osfmk/vm/ |
| H A D | vm_object.h | 1167 (object)->vo_owner == TASK_NULL) \ 1168 ? TASK_NULL /* not owned */ \
|
| /xnu-8019.80.24/iokit/bsddev/skywalk/ |
| H A D | IOSkywalkSupport.cpp | 483 if ((task == TASK_NULL) || (arena == NULL) || !super::init()) { in OSDefineMetaClassAndFinalStructors() 732 assert(task != TASK_NULL); in createMapperForTask() 1354 TASK_NULL, options, capacity, alignment, 0); in OSDefineMetaClassAndFinalStructorsWithZone() 1358 TASK_NULL, options, capacity, alignment, 0); in OSDefineMetaClassAndFinalStructorsWithZone()
|