| /xnu-12377.61.12/bsd/kern/ |
| H A D | sys_ulock.c | 330 ull->ull_owner = THREAD_NULL; in ull_alloc() 342 assert(ull->ull_owner == THREAD_NULL); in ull_free() 494 if (*owner == THREAD_NULL) { in ulock_resolve_owner() 533 thread_t owner_thread = THREAD_NULL; in sys_ulock_wait2() 534 thread_t old_owner = THREAD_NULL; in sys_ulock_wait2() 692 if (owner_thread == THREAD_NULL) { in sys_ulock_wait2() 721 ull->ull_owner = THREAD_NULL; in sys_ulock_wait2() 723 if (owner_thread != THREAD_NULL) { in sys_ulock_wait2() 777 if (set_owner && owner_thread != THREAD_NULL) { in sys_ulock_wait2() 780 assert(owner_thread == THREAD_NULL); in sys_ulock_wait2() [all …]
|
| H A D | kern_resource.c | 1276 if (thread != THREAD_NULL && in do_background_socket() 1283 if (thread != THREAD_NULL) { in do_background_socket() 1295 if (thread == THREAD_NULL) { in do_background_socket() 2243 thread = THREAD_NULL; in iopolicysys_disk() 2284 thread = THREAD_NULL; in iopolicysys_disk() 2332 if (thread != THREAD_NULL) { in iopolicysys_disk() 2339 if (thread != THREAD_NULL) { in iopolicysys_disk() 2468 thread = THREAD_NULL; in iopolicysys_vfs_atime_updates() 2490 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates() 2497 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates() [all …]
|
| H A D | mach_process.c | 123 thread_t th_act = THREAD_NULL; in ptrace() 408 if (th_act == THREAD_NULL) { in ptrace() 489 if (th_act == THREAD_NULL) { in ptrace()
|
| /xnu-12377.61.12/osfmk/kern/ |
| H A D | sync_sema.c | 355 if (thread != THREAD_NULL) { in semaphore_signal_internal() 461 if (thread == THREAD_NULL) { in semaphore_signal_thread_trap() 465 thread = THREAD_NULL; in semaphore_signal_thread_trap() 475 if (thread != THREAD_NULL) { in semaphore_signal_thread_trap() 505 THREAD_NULL, in semaphore_signal() 536 THREAD_NULL, in semaphore_signal_internal_trap() 563 THREAD_NULL, in semaphore_signal_all() 587 THREAD_NULL, in semaphore_signal_all_trap() 644 assert(self->handoff_thread == THREAD_NULL); in semaphore_wait_continue() 672 thread_t handoff_thread = THREAD_NULL; in semaphore_wait_internal() [all …]
|
| H A D | thread_act.c | 296 if (thread == THREAD_NULL) { in thread_terminate() 339 if (thread == THREAD_NULL) { in thread_terminate_from_user() 421 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_suspend() 449 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_resume() 482 if (thread == THREAD_NULL) { in thread_depress_abort_from_user() 532 if (thread == THREAD_NULL) { in thread_abort() 556 if (thread == THREAD_NULL) { in thread_abort_safely() 599 if (thread == THREAD_NULL) { in thread_info() 628 if (thread == THREAD_NULL) { in thread_get_state_internal() 718 if (thread == THREAD_NULL) { in thread_set_state_internal() [all …]
|
| H A D | sched_dualq.c | 237 return THREAD_NULL; in sched_dualq_choose_thread() 251 return THREAD_NULL; in sched_dualq_choose_thread() 261 if (potential_thread == THREAD_NULL) { in sched_dualq_choose_thread() 262 return THREAD_NULL; in sched_dualq_choose_thread() 271 return THREAD_NULL; in sched_dualq_choose_thread() 277 return THREAD_NULL; in sched_dualq_choose_thread() 289 return THREAD_NULL; in sched_dualq_choose_thread() 494 return THREAD_NULL; in sched_dualq_steal_thread() 528 if (thread != THREAD_NULL && thread->sched_stamp != os_atomic_load(&sched_tick, relaxed)) { in sched_dualq_thread_update_scan()
|
| H A D | syscall_subr.c | 203 thread_t thread = THREAD_NULL; in thread_switch() 257 if (thread != THREAD_NULL) { in thread_switch() 274 if (thread != THREAD_NULL) { in thread_switch() 284 if (pulled_thread != THREAD_NULL) { in thread_switch() 363 if (thread != THREAD_NULL) { in thread_handoff_internal() 378 if (pulled_thread != THREAD_NULL) { in thread_handoff_internal()
|
| H A D | thread.c | 733 assert(thread->handoff_thread == THREAD_NULL); in thread_terminate_self() 757 if (thread == THREAD_NULL) { in thread_ref_release() 1333 assert(vm_pageout_scan_thread == THREAD_NULL); in thread_create_internal() 2076 if (thread == THREAD_NULL) { in thread_info_internal() 2187 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in thread_info_internal() 3125 return thread != THREAD_NULL? thread->thread_id: 0; in thread_tid() 3141 return thread != THREAD_NULL ? thread->c_switch : 0; in thread_c_switch() 3296 if (thread == THREAD_NULL) { in thread_dispatchqaddr() 3325 if (thread == THREAD_NULL) { in thread_wqquantum_addr() 3353 if (thread == THREAD_NULL) { in thread_rettokern_addr() [all …]
|
| H A D | sched_amp.c | 259 return THREAD_NULL; in sched_amp_choose_thread() 269 return THREAD_NULL; in sched_amp_choose_thread() 495 thread_t thread = THREAD_NULL; in sched_amp_steal_thread() 507 return THREAD_NULL; in sched_amp_steal_thread() 573 if (thread != THREAD_NULL && thread->sched_stamp != os_atomic_load(&sched_tick, relaxed)) { in sched_amp_thread_update_scan()
|
| H A D | mk_sp.c | 82 if (thread == THREAD_NULL || in thread_set_policy() 196 if (thread == THREAD_NULL) { in thread_policy()
|
| H A D | ipc_tt.c | 1590 if (thread == THREAD_NULL) { in thread_get_special_port() 1612 if (thread == THREAD_NULL) { in thread_get_special_port_from_user() 1718 if (thread == THREAD_NULL) { in thread_set_special_port() 2964 thread_t thread = THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 2972 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 2977 if (thread == THREAD_NULL) { in convert_port_to_thread_with_flavor_locked() 2978 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 2983 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 2991 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 2996 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() [all …]
|
| H A D | sched_rt.c | 591 …(DBG_MACH_SCHED, MACH_RT_STEAL) | DBG_FUNC_NONE, (uintptr_t)thread_tid(THREAD_NULL), pset->pset_id… in sched_rt_steal_thread() 604 return THREAD_NULL; in sched_rt_steal_thread() 623 if (new_thread != THREAD_NULL) { in sched_rt_choose_thread() 634 assert(new_thread != THREAD_NULL); in sched_rt_choose_thread() 639 return THREAD_NULL; in sched_rt_choose_thread() 1407 assert(next_rt != THREAD_NULL); in rt_runq_dequeue() 1432 CHECK_RT_RUNQ_CONSISTENCY(rt_run_queue, THREAD_NULL); in rt_runq_dequeue() 1443 return THREAD_NULL; in rt_runq_first() 1494 CHECK_RT_RUNQ_CONSISTENCY(rt_run_queue, THREAD_NULL); in rt_runq_remove()
|
| H A D | exclaves_boot.c | 67 static thread_t exclaves_boot_thread = THREAD_NULL; 243 exclaves_boot_thread = THREAD_NULL; in exclaves_boot_exclavecore()
|
| H A D | extmod_statistics.c | 94 if ((ctask == kernel_task) || (target == THREAD_NULL)) { in extmod_statistics_incr_thread_set_state()
|
| /xnu-12377.61.12/bsd/net/ |
| H A D | flowadv.c | 108 static thread_t fadv_thread = THREAD_NULL; 152 if (!fadv_active && fadv_thread != THREAD_NULL) { in flowadv_add() 166 if (!fadv_active && fadv_thread != THREAD_NULL) { in flowadv_add_entry()
|
| H A D | nwk_wq.c | 53 thread_t nwk_wq_thread __single = THREAD_NULL; in nwk_wq_init()
|
| /xnu-12377.61.12/osfmk/ipc/ |
| H A D | ipc_eventlink.c | 181 ipc_eventlink->el_thread = THREAD_NULL; in ipc_eventlink_initialize() 291 temp_ipc_eventlink->el_thread = THREAD_NULL; in ipc_eventlink_destroy_internal() 332 if (associated_thread[i] != THREAD_NULL && in ipc_eventlink_destroy_internal() 714 thread_t handoff_thread = THREAD_NULL; in ipc_eventlink_signal_wait_internal() 774 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal() 784 self->handoff_thread = THREAD_NULL; in ipc_eventlink_signal_wait_internal() 794 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal() 808 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal()
|
| /xnu-12377.61.12/tests/sched/ |
| H A D | contextswitch.c | 142 thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0); in thread() 145 if (thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0)) { in thread() 152 if (thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0)) { in thread()
|
| /xnu-12377.61.12/osfmk/corpses/ |
| H A D | corpse.c | 467 if (thread != THREAD_NULL) { in task_generate_corpse() 625 thread_t thread = THREAD_NULL; in task_enqueue_exception_with_corpse() 633 if (thread == THREAD_NULL) { in task_enqueue_exception_with_corpse() 670 thread_t thread = THREAD_NULL; in task_generate_corpse_internal() 671 thread_t thread_next = THREAD_NULL; in task_generate_corpse_internal() 812 if (thread != THREAD_NULL) { in task_generate_corpse_internal()
|
| /xnu-12377.61.12/bsd/nfs/ |
| H A D | nfs_upcall.c | 197 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL; in nfsrv_uc_init() 275 if (nfsrv_uc_queue_tbl[i].ucq_thd != THREAD_NULL) { in nfsrv_uc_stop() 278 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL; in nfsrv_uc_stop()
|
| /xnu-12377.61.12/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | misc_needed_defines.h | 35 #define THREAD_NULL ((thread_t) 0) macro
|
| H A D | sched_prim.c | 137 assert(thread != THREAD_NULL); in run_queue_dequeue() 240 return THREAD_NULL; in run_queue_peek()
|
| /xnu-12377.61.12/osfmk/mach/ |
| H A D | mach_types.h | 301 #define THREAD_NULL ((thread_t) NULL) macro 331 #define THREAD_NULL ((thread_t) 0) macro
|
| /xnu-12377.61.12/bsd/net/pktsched/ |
| H A D | pktsched_netem.c | 1136 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in nlc_enqueue() 1334 ne->netem_output_thread = THREAD_NULL; in netem_create() 1360 if (ne->netem_output_thread != THREAD_NULL) { in netem_destroy() 1386 ne->netem_output_thread = THREAD_NULL; in netem_destroy() 1388 ASSERT(ne->netem_output_thread == THREAD_NULL); in netem_destroy() 1551 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in netem_set_params()
|
| /xnu-12377.61.12/tests/sched/sched_test_harness/ |
| H A D | sched_clutch_harness.c | 66 if (chosen_thread != THREAD_NULL) { in impl_cpu_dequeue_thread()
|