Home
last modified time | relevance | path

Searched refs:TASK_NULL (Results 1 – 25 of 59) sorted by relevance

123

/xnu-8792.41.9/osfmk/kern/
H A Dextmod_statistics.c77 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 Dipc_tt.c208 if (parent == TASK_NULL) { in ipc_task_init()
1271 if (task == TASK_NULL) { in mach_task_is_self()
1901 if (task == TASK_NULL) { in task_get_special_port_internal()
2025 if (task == TASK_NULL) { in task_get_special_port_from_user()
2133 if (task == TASK_NULL) { in task_set_special_port_from_user()
2153 if (task == TASK_NULL) { in task_set_special_port()
2211 if (task == TASK_NULL) { in task_set_special_port_internal()
2309 if ((task == TASK_NULL) || in mach_ports_register()
2390 if (task == TASK_NULL) { in mach_ports_lookup()
2441 if (victim == TASK_NULL) { in task_conversion_eval_internal()
[all …]
H A Dtask_ref.c285 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 Dsync_sema.c73 return semaphore->owner != TASK_NULL; in semaphore_active()
105 if (task == TASK_NULL || value < 0 || (policy & ~SYNC_POLICY_USER_MASK)) { in semaphore_create()
175 semaphore->owner = TASK_NULL; in semaphore_destroy_internal()
233 assert(semaphore->owner == TASK_NULL); in semaphore_free()
242 if (task == TASK_NULL) { in semaphore_free()
286 if (task == TASK_NULL) { in semaphore_destroy()
H A Dtask.c994 if (task_create_internal(TASK_NULL, NULL, NULL, FALSE, in task_init()
1065 assert(kernel_task == TASK_NULL); in init_task_ledgers()
1558 if (parent_task != TASK_NULL) { in task_create_internal()
1880 if (task == TASK_NULL) { in task_deallocate_internal()
2321 if (task == TASK_NULL) { in task_terminate()
2501 assert(task != TASK_NULL); in task_port_no_senders()
2535 if (task != TASK_NULL) { in task_port_with_flavor_no_senders()
2540 if (task == TASK_NULL) { in task_port_with_flavor_no_senders()
3296 if (task == TASK_NULL) { in task_hold()
3319 if (task == TASK_NULL) { in task_wait()
[all …]
H A Dtask_ident.c147 if (task == TASK_NULL || task == kernel_task) { in task_create_identity_token()
244 assert(task != TASK_NULL); in task_identity_token_get_task_port()
H A Dcoalition.c926 coal->j.leader = TASK_NULL; in i_coal_jetsam_init()
956 assert(coal->j.leader == TASK_NULL); in i_coal_jetsam_dealloc()
1021 if (cj->leader != TASK_NULL) { in i_coal_jetsam_set_taskrole()
1484 assert(task != TASK_NULL); in task_coalition_update_gpu_stats()
2187 return TASK_NULL; in kdp_coalition_get_leader()
2193 return TASK_NULL; in kdp_coalition_get_leader()
2199 task_t leader = TASK_NULL; in coalition_get_leader()
2202 return TASK_NULL; in coalition_get_leader()
2211 if (leader != TASK_NULL) { in coalition_get_leader()
2405 coal->j.leader == TASK_NULL) { in coalition_get_sort_list()
H A Dbsd_kern.c806 return TASK_NULL; in get_threadtask_early()
1209 assert(task != TASK_NULL); in fill_task_rusage()
1249 assert(task != TASK_NULL); in fill_task_io_rusage()
1269 assert(task != TASK_NULL); in fill_task_qos_rusage()
1295 assert(task != TASK_NULL); in get_task_logical_writes()
H A Dipc_kobject.c427 task_t task = TASK_NULL; in ipc_kobject_server_internal()
466 if (task != TASK_NULL) { in ipc_kobject_server_internal()
1580 if (task != TASK_NULL && task == space->is_task) { in ipc_kobject_label_substitute_task()
1610 if (task != TASK_NULL && task == space->is_task) { in ipc_kobject_label_substitute_task_read()
/xnu-8792.41.9/osfmk/corpses/
H A Dcorpse.c442 if (task == kernel_task || task == TASK_NULL) { in task_generate_corpse()
614 task_t corpse = TASK_NULL; in task_enqueue_exception_with_corpse()
624 assert(corpse != TASK_NULL); in task_enqueue_exception_with_corpse()
657 task_t new_task = TASK_NULL; in task_generate_corpse_internal()
701 is_64bit_data = (task == TASK_NULL) ? is_64bit_addr : task_get_64bit_data(task); in task_generate_corpse_internal()
796 if (new_task != TASK_NULL) { in task_generate_corpse_internal()
899 if (task == TASK_NULL || task_is_a_corpse(task) || in task_map_corpse_info_64()
900 corpse_task == TASK_NULL || !task_is_a_corpse(corpse_task)) { in task_map_corpse_info_64()
942 if (task == TASK_NULL || task_is_a_corpse(task) || in task_map_kcdata_object_64()
/xnu-8792.41.9/osfmk/kperf/
H A Dpet.c498 task_t task = TASK_NULL; in kppet_tasks_prepare()
532 assert(task != TASK_NULL); in kppet_sample_tasks()
535 kppet.g_tasks[i] = TASK_NULL; in kppet_sample_tasks()
H A Dkperf.c315 if (task == TASK_NULL) { in kperf_port_to_pid()
/xnu-8792.41.9/bsd/vm/
H A Dvm_unix.c763 if (t1 == TASK_NULL) { in pid_for_task()
912 task_t t1 = TASK_NULL; in task_for_pid()
913 task_t task = TASK_NULL; in task_for_pid()
933 if (t1 == TASK_NULL) { in task_for_pid()
957 if (proc_task(p) == TASK_NULL) { in task_for_pid()
1042 if (task != TASK_NULL) { in task_for_pid()
1072 task_t t1 = TASK_NULL; in task_name_for_pid()
1083 if (t1 == TASK_NULL) { in task_name_for_pid()
1100 if (proc_task(p) != TASK_NULL) { in task_name_for_pid()
1163 task_t t1 = TASK_NULL; in task_inspect_for_pid()
[all …]
/xnu-8792.41.9/osfmk/mach/
H A Dmach_types.h282 #define TASK_NULL ((task_t) NULL) macro
312 #define TASK_NULL ((task_t) 0) macro
/xnu-8792.41.9/tests/
H A Dtask_policy.c82 task_t task = TASK_NULL;
252 task_t task = TASK_NULL;
372 task_t task = TASK_NULL;
542 task_t task = TASK_NULL;
/xnu-8792.41.9/bsd/kern/
H A Dsys_ulock.c261 if (task == TASK_NULL) { in ull_hash_dump()
269 if (task == TASK_NULL) { in ull_hash_dump()
273 if ((task == TASK_NULL) || ((elem->ull_key.ulk_key_type == ULK_UADDR) in ull_hash_dump()
282 if (task == TASK_NULL) { in ull_hash_dump()
858 *retval = ull_hash_dump(TASK_NULL); in sys_ulock_wake()
H A Dprocess_policy.c584 task_set_no_smt(TASK_NULL); in handle_no_smt()
608 task_set_tecs(TASK_NULL); in handle_tecs()
H A Dsys_recount.c215 if (task == TASK_NULL) { in proc_pidthreadcounts()
H A Dproc_info.c771 if ((zombie == 0) && (p->p_stat != SZOMB) && (proc_task(p) != TASK_NULL)) { in proc_pidbsdinfo()
870 if ((zombie == 0) && (p->p_stat != SZOMB) && (proc_task(p) != TASK_NULL)) { in proc_pidshortbsdinfo()
1771 task_t task = TASK_NULL; in proc_can_use_foreground_hw()
1807 if (task != TASK_NULL) { in proc_can_use_foreground_hw()
1862 if (task != TASK_NULL) { in proc_can_use_foreground_hw()
1864 task = TASK_NULL; in proc_can_use_foreground_hw()
1922 if (task != TASK_NULL) { in proc_can_use_foreground_hw()
3824 task_t task = TASK_NULL; in proc_set_dyld_images()
3838 if (task != TASK_NULL) { in proc_set_dyld_images()
/xnu-8792.41.9/osfmk/ipc/
H A Dipc_importance.c393 assert(TASK_NULL == task_elem->iit_task); in ipc_importance_release_locked()
863 if (TASK_NULL == target_task) { in ipc_importance_task_process_updates()
1119 if (need_update && TASK_NULL != temp_task_imp->iit_task) { in ipc_importance_task_propagate_assertion_locked()
1369 if (KERN_FAILURE == ret && target_task != TASK_NULL) { in ipc_importance_task_hold_legacy_external_assertion()
1463 if (KERN_FAILURE == ret && TASK_NULL != target_task) { in ipc_importance_task_drop_legacy_external_assertion()
1483 if (TASK_NULL == target_task || in ipc_importance_task_externalize_legacy_assertion()
1544 if (TASK_NULL == target_task) { in ipc_importance_task_update_live_donor()
1909 assert(TASK_NULL != task); in ipc_importance_for_task()
1985 if (task != TASK_NULL && task->task_imp_base != IIT_NULL) { in task_importance_update_owner_info()
2108 task_imp->iit_task = TASK_NULL; in ipc_importance_disconnect_task()
[all …]
H A Dipc_port.c729 task_t task = TASK_NULL; in ipc_port_init()
2404 task_t receiver = TASK_NULL; in ipc_port_get_receiver_task_locked()
2440 *task = (uintptr_t)TASK_NULL; in ipc_port_get_receiver_task()
2638 if (space->is_task != TASK_NULL && in ipc_port_importance_delta_internal()
2877 assert(space->is_task != TASK_NULL); in ipc_port_copyout_send_pinned()
3474 if (task != TASK_NULL) { in ipc_port_init_debug()
/xnu-8792.41.9/iokit/Tests/
H A DTestIOMemoryDescriptor.cpp360 …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-8792.41.9/osfmk/i386/
H A Dmachine_task.c296 if (parent_task != TASK_NULL) { in machine_task_init()
/xnu-8792.41.9/osfmk/vm/
H A Dvm_user.c2861 assert(owner != TASK_NULL); in mach_make_memory_entry_internal()
3031 VM_OBJECT_OWNER(VME_OBJECT(entry)) == TASK_NULL) { in mach_make_memory_entry_internal()
3274 VM_OBJECT_OWNER(VME_OBJECT(copy_entry)) == TASK_NULL) { in mach_make_memory_entry_internal()
3286 if (VM_OBJECT_OWNER(vm_named_entry_to_vm_object(user_entry)) != TASK_NULL) { in mach_make_memory_entry_internal()
3563 if (VM_OBJECT_OWNER(object) != TASK_NULL) { in mach_memory_object_memory_entry_64()
3748 ((owner != cur_task && owner != TASK_NULL) || in mach_memory_entry_ownership()
3816 if (owner == TASK_NULL) { in mach_memory_entry_ownership()
3903 task_t owner = TASK_NULL; in mach_memory_entry_ownership_from_user()
3921 owner = TASK_NULL; in mach_memory_entry_ownership_from_user()
H A Dvm_object.h1143 (object)->vo_owner == TASK_NULL) \
1144 ? TASK_NULL /* not owned */ \

123