Home
last modified time | relevance | path

Searched refs:THREAD_NULL (Results 1 – 25 of 90) sorted by relevance

1234

/xnu-11215/bsd/kern/
H A Dsys_ulock.c330 ull->ull_owner = THREAD_NULL; in ull_alloc()
484 if (*owner == THREAD_NULL) { in ulock_resolve_owner()
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()
824 ull->ull_owner = THREAD_NULL; in ulock_wait_cleanup()
835 if (owner_thread != THREAD_NULL) { in ulock_wait_cleanup()
839 if (old_owner != THREAD_NULL) { in ulock_wait_cleanup()
984 if (wake_thread == THREAD_NULL) { in ulock_wake()
991 thread_t new_owner = THREAD_NULL; in ulock_wake()
[all …]
H A Dkern_resource.c1050 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()
2324 thread = THREAD_NULL; in iopolicysys_vfs_materialize_dataless_files()
2669 thread = THREAD_NULL; in iopolicysys_vfs_skip_mtime_update()
[all …]
H A Dmach_process.c122 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/osfmk/kern/
H A Dsync_sema.c356 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 Dthread_act.c285 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()
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()
722 if (thread == THREAD_NULL) { in thread_set_state_internal()
824 if (thread == THREAD_NULL) { in thread_convert_thread_state()
[all …]
H A Dsched_dualq.c227 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 Dsyscall_subr.c201 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 Dthread.c752 if (thread == THREAD_NULL) { in thread_ref_release()
2056 if (thread == THREAD_NULL) { in thread_info_internal()
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()
3399 if (THREAD_NULL == thread) { in thread_get_mach_voucher()
3439 if (THREAD_NULL == thread) { in thread_set_mach_voucher()
3968 if (thread != THREAD_NULL) { in thread_port_with_flavor_no_senders()
3973 if (thread == THREAD_NULL) { in thread_port_with_flavor_no_senders()
[all …]
H A Dsched_amp.c254 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 Dmk_sp.c84 if (thread == THREAD_NULL || in thread_set_policy()
198 if (thread == THREAD_NULL) { in thread_policy()
H A Dexclaves_boot.c67 static thread_t exclaves_boot_thread = THREAD_NULL;
243 exclaves_boot_thread = THREAD_NULL; in exclaves_boot_exclavecore()
H A Dipc_tt.c1759 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()
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()
3180 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
[all …]
H A Dextmod_statistics.c94 if ((ctask == kernel_task) || (target == THREAD_NULL)) { in extmod_statistics_incr_thread_set_state()
H A Dsched_prim.c2162 assert(thread != THREAD_NULL); in sched_vm_group_maintenance()
2211 assert(thread != THREAD_NULL); in sched_vm_group_maintenance()
3617 if (thread != THREAD_NULL) { in thread_dispatch()
3913 thread = THREAD_NULL; in thread_dispatch()
4296 assert(thread != THREAD_NULL); in run_queue_dequeue()
4407 return THREAD_NULL; in run_queue_peek()
4506 assert(next_rt != THREAD_NULL); in rt_runq_dequeue()
4542 return THREAD_NULL; in rt_runq_first()
4705 return THREAD_NULL; in sched_rtlocal_steal_thread()
4751 return THREAD_NULL; in sched_rtlocal_steal_thread()
[all …]
H A Dturnstile.c2431 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/bsd/net/
H A Dflowadv.c108 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 Dnwk_wq.c53 thread_t nwk_wq_thread __single = THREAD_NULL; in nwk_wq_init()
/xnu-11215/osfmk/ipc/
H A Dipc_eventlink.c182 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/osfmk/corpses/
H A Dcorpse.c465 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/bsd/nfs/
H A Dnfs_upcall.c197 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/tests/sched/sched_test_harness/shadow_headers/
H A Dmisc_needed_defines.h16 #define THREAD_NULL ((thread_t) 0) macro
H A Dsched_prim.c135 assert(thread != THREAD_NULL); in run_queue_dequeue()
238 return THREAD_NULL; in run_queue_peek()
/xnu-11215/osfmk/mach/
H A Dmach_types.h301 #define THREAD_NULL ((thread_t) NULL) macro
331 #define THREAD_NULL ((thread_t) 0) macro
/xnu-11215/bsd/net/pktsched/
H A Dpktsched_netem.c1136 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/san/coverage/
H A Dkcov.c213 if (__improbable(th == THREAD_NULL)) { in trace_pc_guard()

1234