Home
last modified time | relevance | path

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

123

/xnu-8020.101.4/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.c205 if (parent == TASK_NULL) { in ipc_task_init()
1233 if (task == TASK_NULL) { in mach_task_is_self()
1843 if (task == TASK_NULL) { in task_get_special_port_internal()
1950 if (task == TASK_NULL) { in task_get_special_port_from_user()
2074 if (task == TASK_NULL) { in task_set_special_port()
2132 if (task == TASK_NULL) { in task_set_special_port_internal()
2225 if ((task == TASK_NULL) || in mach_ports_register()
2306 if (task == TASK_NULL) { in mach_ports_lookup()
2366 if (victim == TASK_NULL || (victim == kernel_task && !allow_kern_task)) { in task_conversion_eval_internal()
2469 return TASK_NULL; in convert_port_to_task_with_flavor_locked_noref()
[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 Dtask.c957 …if (task_create_internal(TASK_NULL, NULL, NULL, FALSE, TRUE, TRUE, TF_NONE, TPF_NONE, TWF_NONE, &k… in task_init()
959 …if (task_create_internal(TASK_NULL, NULL, NULL, FALSE, FALSE, FALSE, TF_NONE, TPF_NONE, TWF_NONE, … in task_init()
997 if (parent_task == TASK_NULL) { in task_create()
1049 assert(kernel_task == TASK_NULL); in init_task_ledgers()
1510 if (parent_task != TASK_NULL) { in task_create_internal()
1590 if (kernel_task == TASK_NULL) { in task_create_internal()
1844 if (task == TASK_NULL) { in task_deallocate_internal()
2260 if (task == TASK_NULL) { in task_terminate()
2440 assert(task != TASK_NULL); in task_port_no_senders()
2474 if (task != TASK_NULL) { in task_port_with_flavor_no_senders()
[all …]
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()
234 assert(semaphore->owner == TASK_NULL); in semaphore_free()
243 if (task == TASK_NULL) { in semaphore_free()
287 if (task == TASK_NULL) { in semaphore_destroy()
H A Dux_handler.c141 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 Dtask_ident.c146 if (task == TASK_NULL || task == kernel_task) { in task_create_identity_token()
242 assert(task != TASK_NULL); in task_identity_token_get_task_port()
H A Dbsd_kern.c798 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 Dcoalition.c938 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 Dipc_kobject.c443 task_t task = TASK_NULL; in ipc_kobject_server_internal()
480 if (task != TASK_NULL) { in ipc_kobject_server_internal()
1646 if (task != TASK_NULL && task == space->is_task) { in ipc_kobject_label_substitute_task()
/xnu-8020.101.4/osfmk/corpses/
H A Dcorpse.c441 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-8020.101.4/bsd/vm/
H A Dvm_unix.c740 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-8020.101.4/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-8020.101.4/osfmk/mach/
H A Dmach_types.h280 #define TASK_NULL ((task_t) NULL) macro
309 #define TASK_NULL ((task_t) 0) macro
/xnu-8020.101.4/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-8020.101.4/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 Dproc_info.c759 if ((zombie == 0) && (p->p_stat != SZOMB) && (p->task != TASK_NULL)) { in proc_pidbsdinfo()
858 if ((zombie == 0) && (p->p_stat != SZOMB) && (p->task != TASK_NULL)) { in proc_pidshortbsdinfo()
1761 task_t task = TASK_NULL; in proc_can_use_foreground_hw()
1797 if (task != TASK_NULL) { in proc_can_use_foreground_hw()
1852 if (task != TASK_NULL) { in proc_can_use_foreground_hw()
1854 task = TASK_NULL; in proc_can_use_foreground_hw()
1912 if (task != TASK_NULL) { in proc_can_use_foreground_hw()
/xnu-8020.101.4/osfmk/ipc/
H A Dipc_importance.c394 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 Dipc_port.c2368 task_t receiver = TASK_NULL; in ipc_port_get_receiver_task()
2577 if (space->is_task != TASK_NULL && in ipc_port_importance_delta_internal()
2809 assert(space->is_task != TASK_NULL); in ipc_port_copyout_send_pinned()
3393 if (task != TASK_NULL) { in ipc_port_init_debug()
/xnu-8020.101.4/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-8020.101.4/osfmk/i386/
H A Dmachine_task.c296 if (parent_task != TASK_NULL) { in machine_task_init()
/xnu-8020.101.4/osfmk/vm/
H A Dvm_object.h1165 (object)->vo_owner == TASK_NULL) \
1166 ? TASK_NULL /* not owned */ \
/xnu-8020.101.4/iokit/bsddev/skywalk/
H A DIOSkywalkSupport.cpp484 if ((task == TASK_NULL) || (arena == NULL) || !super::init()) { in OSDefineMetaClassAndFinalStructors()
733 assert(task != TASK_NULL); in createMapperForTask()
1347 TASK_NULL, options, capacity, alignment, 0); in OSDefineMetaClassAndFinalStructorsWithZone()
1351 TASK_NULL, options, capacity, alignment, 0); in OSDefineMetaClassAndFinalStructorsWithZone()

123