| /xnu-12377.61.12/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 | 239 if (parent == TASK_NULL) { in ipc_task_init() 1221 if (task == TASK_NULL) { in mach_task_is_self() 1811 if (task == TASK_NULL) { in task_get_special_port_internal() 1914 if (task == TASK_NULL) { in task_get_special_port_from_user() 2024 if (task == TASK_NULL) { in task_set_special_port_from_user() 2044 if (task == TASK_NULL) { in task_set_special_port() 2107 if (task == TASK_NULL) { in task_set_special_port_internal() 2209 if (task == TASK_NULL) { in _kernelrpc_mach_ports_register3() 2272 if (task == TASK_NULL) { in _kernelrpc_mach_ports_lookup3() 2316 if (victim == TASK_NULL) { in task_conversion_eval_internal() [all …]
|
| H A D | task_ref.c | 290 if (task == TASK_NULL) { in task_reference_grp() 345 if (task == TASK_NULL) { in task_deallocate_grp() 532 if (task == TASK_NULL) { in task_reference_grp() 543 if (task == TASK_NULL) { in task_deallocate_grp()
|
| H A D | task.c | 1193 if (task_create_internal(TASK_NULL, NULL, NULL, FALSE, is_64bit, in task_init() 1271 assert(kernel_task == TASK_NULL); in init_task_ledgers() 1790 if (parent_task != TASK_NULL) { in task_create_internal() 2009 if (parent_task != TASK_NULL) { in task_create_internal() 2154 if (task == TASK_NULL) { in task_deallocate_internal() 2590 if (task == TASK_NULL) { in task_terminate() 2785 if (task == TASK_NULL || !task_is_a_corpse(task)) { in task_port_no_senders() 2786 task = TASK_NULL; in task_port_no_senders() 2808 TASK_NULL); in task_port_no_senders() 2847 if (task != TASK_NULL) { in task_port_with_flavor_no_senders() [all …]
|
| H A D | energy_perf.c | 133 task_t task = TASK_NULL; in task_id_token_to_energy_id() 138 assert(task == TASK_NULL); in task_id_token_to_energy_id()
|
| H A D | sync_sema.c | 71 return semaphore->owner != TASK_NULL; in semaphore_active() 103 if (task == TASK_NULL || value < 0 || (policy & ~SYNC_POLICY_USER_MASK)) { in semaphore_create() 179 semaphore->owner = TASK_NULL; in semaphore_destroy_internal() 240 assert(semaphore->owner == TASK_NULL); in semaphore_free() 252 if (task == TASK_NULL) { in semaphore_free() 293 if (task == TASK_NULL) { in semaphore_destroy()
|
| H A D | coalition.c | 751 return TASK_NULL; in i_coal_resource_iterate_tasks() 1085 coal->j.leader = TASK_NULL; in i_coal_jetsam_init() 1115 assert(coal->j.leader == TASK_NULL); in i_coal_jetsam_dealloc() 1180 if (cj->leader != TASK_NULL) { in i_coal_jetsam_set_taskrole() 1313 return TASK_NULL; in i_coal_jetsam_iterate_tasks() 1627 assert(task != TASK_NULL); in task_coalition_update_gpu_stats() 1867 assert(selected_task == TASK_NULL); in coalition_for_each_task_locked() 1894 if (selected_task != TASK_NULL) { in coalition_select_task() 2451 return TASK_NULL; in kdp_coalition_get_leader() 2457 return TASK_NULL; in kdp_coalition_get_leader() [all …]
|
| H A D | task_ident.c | 134 if (task == TASK_NULL || task == kernel_task) { in task_create_identity_token() 232 assert(task != TASK_NULL); in task_identity_token_get_task_port()
|
| H A D | exclaves_conclave.c | 282 if (task == TASK_NULL) { 401 if (task == TASK_NULL) {
|
| H A D | bsd_kern.c | 878 return TASK_NULL; in get_threadtask_early() 1268 assert(task != TASK_NULL); in fill_task_rusage() 1312 assert(task != TASK_NULL); in fill_task_io_rusage() 1332 assert(task != TASK_NULL); in fill_task_qos_rusage() 1358 assert(task != TASK_NULL); in get_task_logical_writes()
|
| /xnu-12377.61.12/osfmk/corpses/ |
| H A D | corpse.c | 449 if (task == kernel_task || task == TASK_NULL) { in task_generate_corpse() 624 task_t corpse = TASK_NULL; in task_enqueue_exception_with_corpse() 636 assert(corpse != TASK_NULL); in task_enqueue_exception_with_corpse() 669 task_t new_task = TASK_NULL; in task_generate_corpse_internal() 717 is_64bit_data = (task == TASK_NULL) ? is_64bit_addr : task_get_64bit_data(task); in task_generate_corpse_internal() 745 new_task = TASK_NULL; in task_generate_corpse_internal() 815 if (new_task != TASK_NULL) { in task_generate_corpse_internal() 916 if (task == TASK_NULL || task_is_a_corpse(task) || in task_map_corpse_info_64() 917 corpse_task == TASK_NULL || !task_is_a_corpse(corpse_task)) { in task_map_corpse_info_64() 959 if (task == TASK_NULL || task_is_a_corpse(task) || in task_map_kcdata_object_64()
|
| /xnu-12377.61.12/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | misc_needed_defines.h | 34 #define TASK_NULL ((task_t) 0) macro
|
| /xnu-12377.61.12/osfmk/kperf/ |
| H A D | pet.c | 529 task_t task = TASK_NULL; in kppet_tasks_prepare() 563 assert(task != TASK_NULL); in kppet_sample_tasks() 566 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-12377.61.12/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-12377.61.12/osfmk/mach/ |
| H A D | mach_types.h | 297 #define TASK_NULL ((task_t) NULL) macro 327 #define TASK_NULL ((task_t) 0) macro
|
| /xnu-12377.61.12/bsd/kern/ |
| H A D | sys_ulock.c | 289 if (task == TASK_NULL) { in ull_hash_dump() 297 if (task == TASK_NULL) { in ull_hash_dump() 301 if ((task == TASK_NULL) || ((elem->ull_key.ulk_key_type == ULK_UADDR) in ull_hash_dump() 310 if (task == TASK_NULL) { in ull_hash_dump() 899 *retval = ull_hash_dump(TASK_NULL); in sys_ulock_wake()
|
| H A D | kern_proc.c | 5490 if (t != TASK_NULL) { in proc_ro_alloc() 5495 if ((p != PROC_NULL) || (t != TASK_NULL)) { in proc_ro_alloc() 5507 if (pr->pr_task != TASK_NULL) { in proc_ro_ref_task() 5524 pr, pr_task, ZRO_ATOMIC_XCHG_LONG, TASK_NULL); in proc_ro_erase_task() 5600 if (t1 == TASK_NULL) { in pid_for_task() 5782 task_t t1 = TASK_NULL; in task_for_pid() 5783 task_t task = TASK_NULL; in task_for_pid() 5803 if (t1 == TASK_NULL) { in task_for_pid() 5827 if (proc_task(p) == TASK_NULL) { in task_for_pid() 5916 if (task != TASK_NULL) { in task_for_pid() [all …]
|
| H A D | process_policy.c | 585 task_set_no_smt(TASK_NULL); in handle_no_smt() 615 task_set_tecs(TASK_NULL); in handle_tecs()
|
| /xnu-12377.61.12/osfmk/vm/ |
| H A D | vm_memory_entry.c | 374 assert(owner != TASK_NULL); in mach_make_memory_entry_named_create() 575 VM_OBJECT_OWNER(VME_OBJECT(entry)) == TASK_NULL) { in mach_make_memory_entry_copy() 898 if (VM_OBJECT_OWNER(VME_OBJECT(copy_entry)) == TASK_NULL) { in mach_make_memory_entry_share() 919 if (VM_OBJECT_OWNER(object) != TASK_NULL) { in mach_make_memory_entry_share() 1363 if (VM_OBJECT_OWNER(object) != TASK_NULL) { in mach_memory_object_memory_entry_64() 1554 } else if ((owner != cur_task && owner != TASK_NULL) || in mach_memory_entry_ownership() 1647 if (owner == TASK_NULL) { in mach_memory_entry_ownership() 1739 task_t owner = TASK_NULL; in mach_memory_entry_ownership_from_user() 1761 owner = TASK_NULL; in mach_memory_entry_ownership_from_user()
|
| H A D | vm_reclaim.c | 293 if (task == TASK_NULL) { in vm_deferred_reclamation_buffer_allocate_internal() 582 assert3p(metadata->vdrm_task, !=, TASK_NULL); in vm_deferred_reclamation_buffer_deallocate() 583 metadata->vdrm_task = TASK_NULL; in vm_deferred_reclamation_buffer_deallocate() 613 if (task == TASK_NULL || !task_is_active(task) || task_is_halting(task)) { in reclaim_kill_with_reason() 1316 if (task == TASK_NULL) { in vm_deferred_reclamation_buffer_resize_internal() 1439 if (task == TASK_NULL) { in vmdr_calculate_autotrim_threshold() 1881 if (task == TASK_NULL || in vmdr_garbage_collect() 1887 task = TASK_NULL; in vmdr_garbage_collect()
|
| /xnu-12377.61.12/tests/vm/ |
| H A D | neural_footprint.c | 568 TASK_NULL, /* owner remains unchanged */ 594 TASK_NULL, /* owner remains unchanged */ 619 TASK_NULL, /* owner remains unchanged */ 644 TASK_NULL, /* owner remains unchanged */
|
| /xnu-12377.61.12/osfmk/ipc/ |
| H A D | ipc_importance.c | 394 assert(TASK_NULL == task_elem->iit_task); in ipc_importance_release_locked() 877 if (TASK_NULL == target_task) { in ipc_importance_task_process_updates() 1136 if (need_update && TASK_NULL != temp_task_imp->iit_task) { in ipc_importance_task_propagate_assertion_locked() 1389 if (KERN_FAILURE == ret && target_task != TASK_NULL) { in ipc_importance_task_hold_legacy_external_assertion() 1483 if (KERN_FAILURE == ret && TASK_NULL != target_task) { in ipc_importance_task_drop_legacy_external_assertion() 1503 if (TASK_NULL == target_task || in ipc_importance_task_externalize_legacy_assertion() 1564 if (TASK_NULL == target_task) { in ipc_importance_task_update_live_donor() 1929 assert(TASK_NULL != task); in ipc_importance_for_task() 2005 if (task != TASK_NULL && task->task_imp_base != IIT_NULL) { in task_importance_update_owner_info() 2128 task_imp->iit_task = TASK_NULL; in ipc_importance_disconnect_task() [all …]
|
| /xnu-12377.61.12/iokit/Tests/ |
| H A D | TestIOMemoryDescriptor.cpp | 363 …MemoryDescriptor::withAddressRanges(&ranges[0], 2, kIODirectionOutIn | kIOMemoryRemote, TASK_NULL); in IOMemoryRemoteTest() 625 bmd = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in AllocationNameTest() 749 IOBufferMemoryDescriptor * bmd = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in IOMDContextTest() 902 md1 = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in IOMemoryDescriptorTest() 968 md1 = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in IOMemoryDescriptorTest() 976 md2 = IOBufferMemoryDescriptor::inTaskWithOptions(TASK_NULL, in IOMemoryDescriptorTest()
|
| /xnu-12377.61.12/osfmk/i386/ |
| H A D | machine_task.c | 296 if (parent_task != TASK_NULL) { in machine_task_init()
|