| /xnu-8792.41.9/bsd/kern/ |
| H A D | sys_ulock.c | 302 ull->ull_owner = THREAD_NULL; in ull_alloc() 314 assert(ull->ull_owner == THREAD_NULL); in ull_free() 457 if (*owner == THREAD_NULL) { in ulock_resolve_owner() 496 thread_t owner_thread = THREAD_NULL; in sys_ulock_wait2() 497 thread_t old_owner = THREAD_NULL; in sys_ulock_wait2() 655 if (owner_thread == THREAD_NULL) { in sys_ulock_wait2() 684 ull->ull_owner = THREAD_NULL; in sys_ulock_wait2() 686 if (owner_thread != THREAD_NULL) { in sys_ulock_wait2() 736 if (set_owner && owner_thread != THREAD_NULL) { in sys_ulock_wait2() 739 assert(owner_thread == THREAD_NULL); in sys_ulock_wait2() [all …]
|
| H A D | kern_resource.c | 801 if (thread != THREAD_NULL && in do_background_socket() 808 if (thread != THREAD_NULL) { in do_background_socket() 820 if (thread == THREAD_NULL) { in do_background_socket() 1725 thread = THREAD_NULL; in iopolicysys_disk() 1766 thread = THREAD_NULL; in iopolicysys_disk() 1814 if (thread != THREAD_NULL) { in iopolicysys_disk() 1821 if (thread != THREAD_NULL) { in iopolicysys_disk() 1950 thread = THREAD_NULL; in iopolicysys_vfs_atime_updates() 1972 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates() 1979 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates() [all …]
|
| /xnu-8792.41.9/osfmk/kern/ |
| H A D | sync_sema.c | 368 if (thread != THREAD_NULL) { in semaphore_signal_internal() 471 if (thread == THREAD_NULL) { in semaphore_signal_thread_trap() 475 thread = THREAD_NULL; in semaphore_signal_thread_trap() 485 if (thread != THREAD_NULL) { in semaphore_signal_thread_trap() 515 THREAD_NULL, in semaphore_signal() 546 THREAD_NULL, in semaphore_signal_internal_trap() 573 THREAD_NULL, in semaphore_signal_all() 597 THREAD_NULL, in semaphore_signal_all_trap() 654 assert(self->handoff_thread == THREAD_NULL); in semaphore_wait_continue() 682 thread_t handoff_thread = THREAD_NULL; in semaphore_wait_internal() [all …]
|
| H A D | thread_act.c | 207 if (thread == THREAD_NULL) { in thread_terminate() 246 if (thread == THREAD_NULL) { in thread_terminate_from_user() 268 if (thread == THREAD_NULL) { in thread_terminate_pinned() 338 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_suspend() 366 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_resume() 399 if (thread == THREAD_NULL) { in thread_depress_abort_from_user() 449 if (thread == THREAD_NULL) { in thread_abort() 473 if (thread == THREAD_NULL) { in thread_abort_safely() 516 if (thread == THREAD_NULL) { in thread_info() 545 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 | sched_grrr.c | 337 return THREAD_NULL; in sched_grrr_steal_thread() 381 while ((thread = sched_grrr_choose_thread(processor, IDLEPRI, AST_NONE)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown() 389 while ((thread = (thread_t)(void *)dequeue_head(&bqueue)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown() 395 while ((thread = (thread_t)(void *)dequeue_head(&tqueue)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown() 598 return THREAD_NULL; in grrr_intragroup_schedule() 602 if (thread == THREAD_NULL) { in grrr_intragroup_schedule() 625 return THREAD_NULL; in grrr_intergroup_schedule() 695 runq->groups[index].current_client = THREAD_NULL; in grrr_runqueue_init() 737 if (group->current_client == THREAD_NULL || in grrr_enqueue() 765 if (thread != THREAD_NULL) { in grrr_select() [all …]
|
| 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 | 728 assert(thread->handoff_thread == THREAD_NULL); in thread_terminate_self() 750 if (thread == THREAD_NULL) { in thread_ref_release() 1337 assert(vm_pageout_scan_thread == THREAD_NULL); in thread_create_internal() 2045 if (thread == THREAD_NULL) { in thread_info_internal() 2156 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in thread_info_internal() 2976 return thread != THREAD_NULL? thread->thread_id: 0; in thread_tid() 3141 if (thread == THREAD_NULL) { in thread_dispatchqaddr() 3170 if (thread == THREAD_NULL) { in thread_wqquantum_addr() 3198 if (thread == THREAD_NULL) { in thread_rettokern_addr() 3246 if (thread != THREAD_NULL) { in thread_reference() [all …]
|
| H A D | sched_traditional.c | 332 if (thread != THREAD_NULL) { in sched_traditional_choose_thread() 384 return THREAD_NULL; in sched_traditional_choose_thread_from_runq() 570 while ((thread = cqe_dequeue_head(&tqueue, struct thread, runq_links)) != THREAD_NULL) { in sched_traditional_processor_queue_shutdown() 691 return THREAD_NULL; in sched_traditional_steal_processor_thread() 725 if (thread != THREAD_NULL) { in sched_traditional_steal_thread() 745 return THREAD_NULL; in sched_traditional_steal_thread() 778 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_traditional_thread_update_scan()
|
| H A D | sched_amp.c | 254 return THREAD_NULL; in sched_amp_choose_thread() 264 return THREAD_NULL; in sched_amp_choose_thread() 492 thread_t thread = THREAD_NULL; in sched_amp_steal_thread() 504 return THREAD_NULL; in sched_amp_steal_thread() 570 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 | ipc_tt.c | 1684 if (thread == THREAD_NULL) { in thread_get_special_port() 1726 if (thread == THREAD_NULL) { in thread_get_special_port_from_user() 1830 if (thread == THREAD_NULL) { in thread_set_special_port() 3138 thread_t thread = THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3146 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3151 if (thread == THREAD_NULL) { in convert_port_to_thread_with_flavor_locked() 3152 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3157 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3165 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() 3170 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked() [all …]
|
| H A D | sched_clutch.c | 2545 return THREAD_NULL; in sched_clutch_thread_highest_remove() 2548 thread_t highest_thread = THREAD_NULL; in sched_clutch_thread_highest_remove() 2638 thread_t thread = THREAD_NULL; in sched_clutch_root_highest_foreign_thread_remove() 2818 if (thread == THREAD_NULL) { in sched_clutch_initial_quantum_size() 2882 return THREAD_NULL; in sched_clutch_choose_thread() 2894 return THREAD_NULL; in sched_clutch_choose_thread() 2897 thread_t thread = THREAD_NULL; in sched_clutch_choose_thread() 3080 return THREAD_NULL; in sched_clutch_steal_thread() 3114 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_clutch_thread_update_scan() 3578 return THREAD_NULL; in sched_edge_choose_thread() [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 | 516 const uint32_t quantum_size = SCHED(initial_quantum_size)(THREAD_NULL); in sched_set_max_unsafe_rt_quanta() 535 const uint32_t quantum_size = SCHED(initial_quantum_size)(THREAD_NULL); in sched_set_max_unsafe_fixed_quanta() 1732 if (__improbable(thread == THREAD_NULL)) { in thread_wakeup_thread() 1917 assert(thread != THREAD_NULL); in sched_vm_group_maintenance() 1966 assert(thread != THREAD_NULL); in sched_vm_group_maintenance() 2392 thread_t new_thread = THREAD_NULL; in thread_select() 2660 if (new_thread != THREAD_NULL) { in thread_select() 2753 if ((new_thread = SCHED(choose_thread)(processor, MINPRI, *reason)) != THREAD_NULL) { in thread_select() 2796 if ((new_thread = SCHED(steal_thread)(pset)) != THREAD_NULL) { in thread_select() 2873 } while (new_thread == THREAD_NULL); in thread_select() [all …]
|
| /xnu-8792.41.9/bsd/net/ |
| H A D | flowadv.c | 108 static thread_t fadv_thread = THREAD_NULL; 165 if (!fadv_active && fadv_thread != THREAD_NULL) { in flowadv_add() 179 if (!fadv_active && fadv_thread != THREAD_NULL) { in flowadv_add_entry()
|
| H A D | nwk_wq.c | 53 thread_t nwk_wq_thread = THREAD_NULL; in nwk_wq_init()
|
| /xnu-8792.41.9/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-8792.41.9/tests/ |
| H A D | contextswitch.c | 145 thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0); in thread() 148 if (thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0)) { in thread() 155 if (thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0)) { in thread()
|
| /xnu-8792.41.9/osfmk/corpses/ |
| H A D | corpse.c | 458 if (thread != THREAD_NULL) { in task_generate_corpse() 615 thread_t thread = THREAD_NULL; in task_enqueue_exception_with_corpse() 621 if (thread == THREAD_NULL) { in task_enqueue_exception_with_corpse() 658 thread_t thread = THREAD_NULL; in task_generate_corpse_internal() 659 thread_t thread_next = THREAD_NULL; in task_generate_corpse_internal() 793 if (thread != THREAD_NULL) { in task_generate_corpse_internal()
|
| /xnu-8792.41.9/bsd/nfs/ |
| H A D | nfs_upcall.c | 186 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL; in nfsrv_uc_init() 264 if (nfsrv_uc_queue_tbl[i].ucq_thd != THREAD_NULL) { in nfsrv_uc_stop() 267 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL; in nfsrv_uc_stop()
|
| /xnu-8792.41.9/osfmk/mach/ |
| H A D | mach_types.h | 286 #define THREAD_NULL ((thread_t) NULL) macro 316 #define THREAD_NULL ((thread_t) 0) macro
|
| /xnu-8792.41.9/bsd/net/pktsched/ |
| H A D | pktsched_netem.c | 1136 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in nlc_enqueue() 1315 ne->netem_output_thread = THREAD_NULL; in netem_create() 1341 if (ne->netem_output_thread != THREAD_NULL) { in netem_destroy() 1367 ne->netem_output_thread = THREAD_NULL; in netem_destroy() 1369 ASSERT(ne->netem_output_thread == THREAD_NULL); in netem_destroy() 1532 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in netem_set_params()
|
| /xnu-8792.41.9/san/coverage/ |
| H A D | kcov.c | 213 if (__improbable(th == THREAD_NULL)) { in trace_pc_guard()
|
| H A D | kcov_ksancov.c | 522 if (d->thread != THREAD_NULL) { in ksancov_attach() 548 if (d->thread == THREAD_NULL) { in ksancov_detach() 571 d->thread = THREAD_NULL; in ksancov_detach()
|