| /xnu-11215.81.4/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() 484 if (*owner == THREAD_NULL) { in ulock_resolve_owner() 523 thread_t owner_thread = THREAD_NULL; in sys_ulock_wait2() 524 thread_t old_owner = THREAD_NULL; in sys_ulock_wait2() 682 if (owner_thread == THREAD_NULL) { in sys_ulock_wait2() 711 ull->ull_owner = THREAD_NULL; in sys_ulock_wait2() 713 if (owner_thread != THREAD_NULL) { in sys_ulock_wait2() 767 if (set_owner && owner_thread != THREAD_NULL) { in sys_ulock_wait2() 770 assert(owner_thread == THREAD_NULL); in sys_ulock_wait2() [all …]
|
| H A D | kern_resource.c | 1050 if (thread != THREAD_NULL && in do_background_socket() 1057 if (thread != THREAD_NULL) { in do_background_socket() 1069 if (thread == THREAD_NULL) { in do_background_socket() 1992 thread = THREAD_NULL; in iopolicysys_disk() 2033 thread = THREAD_NULL; in iopolicysys_disk() 2081 if (thread != THREAD_NULL) { in iopolicysys_disk() 2088 if (thread != THREAD_NULL) { in iopolicysys_disk() 2217 thread = THREAD_NULL; in iopolicysys_vfs_atime_updates() 2239 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates() 2246 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates() [all …]
|
| H A D | mach_process.c | 122 thread_t th_act = THREAD_NULL; in ptrace() 406 if (th_act == THREAD_NULL) { in ptrace() 487 if (th_act == THREAD_NULL) { in ptrace()
|
| /xnu-11215.81.4/osfmk/kern/ |
| H A D | sync_sema.c | 356 if (thread != THREAD_NULL) { in semaphore_signal_internal() 462 if (thread == THREAD_NULL) { in semaphore_signal_thread_trap() 466 thread = THREAD_NULL; in semaphore_signal_thread_trap() 476 if (thread != THREAD_NULL) { in semaphore_signal_thread_trap() 506 THREAD_NULL, in semaphore_signal() 537 THREAD_NULL, in semaphore_signal_internal_trap() 564 THREAD_NULL, in semaphore_signal_all() 588 THREAD_NULL, in semaphore_signal_all_trap() 645 assert(self->handoff_thread == THREAD_NULL); in semaphore_wait_continue() 673 thread_t handoff_thread = THREAD_NULL; in semaphore_wait_internal() [all …]
|
| H A D | thread_act.c | 285 if (thread == THREAD_NULL) { in thread_terminate() 328 if (thread == THREAD_NULL) { in thread_terminate_from_user() 350 if (thread == THREAD_NULL) { in thread_terminate_pinned() 425 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_suspend() 453 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_resume() 486 if (thread == THREAD_NULL) { in thread_depress_abort_from_user() 536 if (thread == THREAD_NULL) { in thread_abort() 560 if (thread == THREAD_NULL) { in thread_abort_safely() 603 if (thread == THREAD_NULL) { in thread_info() 632 if (thread == THREAD_NULL) { in thread_get_state_internal() [all …]
|
| H A D | sched_dualq.c | 227 return THREAD_NULL; in sched_dualq_choose_thread() 241 return THREAD_NULL; in sched_dualq_choose_thread() 250 if (potential_thread == THREAD_NULL) { in sched_dualq_choose_thread() 251 return THREAD_NULL; in sched_dualq_choose_thread() 260 return THREAD_NULL; in sched_dualq_choose_thread() 266 return THREAD_NULL; in sched_dualq_choose_thread() 278 return THREAD_NULL; in sched_dualq_choose_thread() 480 return THREAD_NULL; in sched_dualq_steal_thread() 514 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_dualq_thread_update_scan()
|
| H A D | syscall_subr.c | 201 thread_t thread = THREAD_NULL; in thread_switch() 255 if (thread != THREAD_NULL) { in thread_switch() 272 if (thread != THREAD_NULL) { in thread_switch() 282 if (pulled_thread != THREAD_NULL) { in thread_switch() 357 if (thread != THREAD_NULL) { in thread_handoff_internal() 372 if (pulled_thread != THREAD_NULL) { in thread_handoff_internal()
|
| H A D | thread.c | 727 assert(thread->handoff_thread == THREAD_NULL); in thread_terminate_self() 752 if (thread == THREAD_NULL) { in thread_ref_release() 1338 assert(vm_pageout_scan_thread == THREAD_NULL); in thread_create_internal() 2056 if (thread == THREAD_NULL) { in thread_info_internal() 2167 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in thread_info_internal() 3036 return thread != THREAD_NULL? thread->thread_id: 0; in thread_tid() 3201 if (thread == THREAD_NULL) { in thread_dispatchqaddr() 3230 if (thread == THREAD_NULL) { in thread_wqquantum_addr() 3258 if (thread == THREAD_NULL) { in thread_rettokern_addr() 3306 if (thread != THREAD_NULL) { in thread_reference() [all …]
|
| H A D | sched_amp.c | 254 return THREAD_NULL; in sched_amp_choose_thread() 264 return THREAD_NULL; in sched_amp_choose_thread() 490 thread_t thread = THREAD_NULL; in sched_amp_steal_thread() 502 return THREAD_NULL; in sched_amp_steal_thread() 568 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_amp_thread_update_scan()
|
| H A D | mk_sp.c | 84 if (thread == THREAD_NULL || in thread_set_policy() 198 if (thread == THREAD_NULL) { in thread_policy()
|
| 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 | ipc_tt.c | 1759 if (thread == THREAD_NULL) { in thread_get_special_port() 1801 if (thread == THREAD_NULL) { in thread_get_special_port_from_user() 1905 if (thread == THREAD_NULL) { in thread_set_special_port() 3139 thread_t thread = THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3147 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3152 if (thread == THREAD_NULL) { in convert_port_to_thread_with_flavor_locked() 3153 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3158 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3166 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3171 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() [all …]
|
| H A D | extmod_statistics.c | 94 if ((ctask == kernel_task) || (target == THREAD_NULL)) { in extmod_statistics_incr_thread_set_state()
|
| H A D | sched_prim.c | 650 const uint32_t quantum_size = SCHED(initial_quantum_size)(THREAD_NULL); in sched_set_max_unsafe_rt_quanta() 672 const uint32_t quantum_size = SCHED(initial_quantum_size)(THREAD_NULL); in sched_set_max_unsafe_fixed_quanta() 1922 if (__improbable(thread == THREAD_NULL)) { in thread_wakeup_thread() 2162 assert(thread != THREAD_NULL); in sched_vm_group_maintenance() 2211 assert(thread != THREAD_NULL); in sched_vm_group_maintenance() 2648 thread_t new_thread = THREAD_NULL; in thread_select() 2916 if (new_thread != THREAD_NULL) { in thread_select() 3009 …cessor, MINPRI, current_thread_can_keep_running ? thread : THREAD_NULL, *reason)) != THREAD_NULL) { in thread_select() 3061 if ((new_thread = SCHED(steal_thread)(pset)) != THREAD_NULL) { in thread_select() 3138 } while (new_thread == THREAD_NULL); in thread_select() [all …]
|
| H A D | turnstile.c | 2431 thread_t max_thread = THREAD_NULL; in turnstile_recompute_priority_locked() 2654 *thread_out = THREAD_NULL; in turnstile_workloop_pusher_info() 2663 *thread_out = THREAD_NULL; in turnstile_workloop_pusher_info() 2672 *thread_out = THREAD_NULL; in turnstile_workloop_pusher_info() 2724 thread_t thread = THREAD_NULL; in turnstile_update_inheritor_priority_chain() 2754 while (turnstile != TURNSTILE_NULL || thread != THREAD_NULL) { in turnstile_update_inheritor_priority_chain() 2778 } else if (thread != THREAD_NULL) { in turnstile_update_inheritor_priority_chain() 2841 thread->inheritor = THREAD_NULL; in turnstile_cleanup() 3095 *in_thread = THREAD_NULL; in thread_update_waiting_turnstile_priority_chain()
|
| /xnu-11215.81.4/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-11215.81.4/osfmk/ipc/ |
| H A D | ipc_eventlink.c | 182 ipc_eventlink->el_thread = THREAD_NULL; in ipc_eventlink_initialize() 292 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-11215.81.4/osfmk/corpses/ |
| H A D | corpse.c | 465 if (thread != THREAD_NULL) { in task_generate_corpse() 623 thread_t thread = THREAD_NULL; in task_enqueue_exception_with_corpse() 631 if (thread == THREAD_NULL) { in task_enqueue_exception_with_corpse() 668 thread_t thread = THREAD_NULL; in task_generate_corpse_internal() 669 thread_t thread_next = THREAD_NULL; in task_generate_corpse_internal() 809 if (thread != THREAD_NULL) { in task_generate_corpse_internal()
|
| /xnu-11215.81.4/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-11215.81.4/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | misc_needed_defines.h | 16 #define THREAD_NULL ((thread_t) 0) macro
|
| H A D | sched_prim.c | 135 assert(thread != THREAD_NULL); in run_queue_dequeue() 238 return THREAD_NULL; in run_queue_peek()
|
| /xnu-11215.81.4/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-11215.81.4/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-11215.81.4/san/coverage/ |
| H A D | kcov.c | 213 if (__improbable(th == THREAD_NULL)) { in trace_pc_guard()
|