| /xnu-8020.140.41/osfmk/kern/ |
| H A D | turnstile.c | 412 struct turnstile *ret_turnstile = TURNSTILE_NULL; in turnstile_freelist_remove() 416 assert(ret_turnstile != TURNSTILE_NULL); in turnstile_freelist_remove() 614 return TURNSTILE_NULL; in turnstile_htable_lookup_add() 644 struct turnstile *ret_turnstile = TURNSTILE_NULL; in turnstable_htable_lookup_remove() 667 assert(ret_turnstile != TURNSTILE_NULL); in turnstable_htable_lookup_remove() 681 return TURNSTILE_NULL; in turnstable_htable_lookup_remove() 734 return TURNSTILE_NULL; in turnstile_htable_lookup() 740 struct turnstile *ts = TURNSTILE_NULL; in turnstile_htable_lookup() 741 struct turnstile *ret_turnstile = TURNSTILE_NULL; in turnstile_htable_lookup() 825 struct turnstile *turnstile = TURNSTILE_NULL; in turnstile_alloc() [all …]
|
| H A D | locks.c | 1196 *ts = turnstile_prepare((uintptr_t)mutex, NULL, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTEX); in lck_mtx_lock_wait() 1258 ts = turnstile_prepare((uintptr_t)mutex, NULL, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTEX); in lck_mtx_lock_acquire() 1309 ts = turnstile_prepare((uintptr_t)mutex, NULL, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTEX); in lck_mtx_unlock_wakeup() 1443 ts = turnstile_prepare((uintptr_t)event, NULL, TURNSTILE_NULL, type); in wakeup_with_inheritor_and_turnstile_type() 1534 ts = turnstile_prepare((uintptr_t)event, NULL, TURNSTILE_NULL, type); 1582 ts = turnstile_prepare((uintptr_t)event, NULL, TURNSTILE_NULL, type); in change_sleep_inheritor_and_turnstile_type() 2081 …ts = turnstile_prepare((uintptr_t)gate, &gate->gt_turnstile, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTE… in gate_open_turnstile() 2149 …ts = turnstile_prepare((uintptr_t)gate, &gate->gt_turnstile, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTE… in gate_handoff_turnstile() 2267 …ts = turnstile_prepare((uintptr_t)gate, &gate->gt_turnstile, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTE… in gate_steal_turnstile() 2337 …ts = turnstile_prepare((uintptr_t)gate, &gate->gt_turnstile, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTE… in gate_wait_turnstile()
|
| H A D | turnstile.h | 255 #define TURNSTILE_NULL ((struct turnstile *)0) macro
|
| H A D | waitq.c | 418 return ts == TURNSTILE_NULL || in waitq_empty() 1643 waitq.wq_q->waitq_ts = TURNSTILE_NULL; in waitq_init() 1681 assert(waitq.wq_q->waitq_ts == TURNSTILE_NULL); in waitq_deinit()
|
| H A D | thread.c | 772 assert(thread->turnstile != TURNSTILE_NULL); in thread_deallocate_complete()
|
| H A D | task.c | 709 NULL, TURNSTILE_NULL, TURNSTILE_ULOCK); in task_clear_return_wait() 736 NULL, TURNSTILE_NULL, TURNSTILE_ULOCK); in task_wait_to_return()
|
| H A D | kern_stackshot.c | 3707 ts != TURNSTILE_NULL; in stackshot_thread_has_valid_turnstileinfo()
|
| /xnu-8020.140.41/osfmk/ipc/ |
| H A D | ipc_port.c | 1310 struct turnstile *send_turnstile = TURNSTILE_NULL; in ipc_port_check_circularity() 1314 TURNSTILE_NULL, TURNSTILE_SYNC_IPC); in ipc_port_check_circularity() 1363 send_turnstile = TURNSTILE_NULL; in ipc_port_check_circularity() 1486 struct turnstile *inheritor = TURNSTILE_NULL; in ipc_port_recv_update_inheritor() 1611 struct turnstile *turnstile = TURNSTILE_NULL; in ipc_port_send_turnstile_prepare() 1612 struct turnstile *send_turnstile = TURNSTILE_NULL; in ipc_port_send_turnstile_prepare() 1619 if (turnstile == TURNSTILE_NULL) { in ipc_port_send_turnstile_prepare() 1628 turnstile = TURNSTILE_NULL; in ipc_port_send_turnstile_prepare() 1644 if (turnstile != TURNSTILE_NULL) { in ipc_port_send_turnstile_prepare() 1662 struct turnstile *turnstile = TURNSTILE_NULL; in ipc_port_send_turnstile_complete() [all …]
|
| H A D | ipc_mqueue.c | 397 struct turnstile *send_turnstile = TURNSTILE_NULL; in ipc_mqueue_send_locked() 423 TURNSTILE_NULL, TURNSTILE_SYNC_IPC); in ipc_mqueue_send_locked() 549 send_turnstile != TURNSTILE_NULL) { in ipc_mqueue_release_msgcount() 907 struct turnstile *rcv_turnstile = TURNSTILE_NULL; in ipc_mqueue_receive_on_thread_and_unlock() 1018 TURNSTILE_NULL, TURNSTILE_SYNC_IPC); in ipc_mqueue_receive_on_thread_and_unlock() 1050 if (rcv_turnstile != TURNSTILE_NULL) { in ipc_mqueue_receive_on_thread_and_unlock() 1331 if (send_turnstile != TURNSTILE_NULL) { in ipc_mqueue_destroy_locked() 1411 if (send_turnstile == TURNSTILE_NULL || in ipc_mqueue_set_qlimit_locked()
|
| H A D | ipc_pset.c | 362 struct turnstile *ts = TURNSTILE_NULL; in filt_machport_stash_port() 437 struct turnstile *ts = TURNSTILE_NULL; in filt_machport_turnstile_complete_port() 618 struct turnstile *send_turnstile = TURNSTILE_NULL; in filt_machportattach() 746 struct turnstile *send_turnstile = TURNSTILE_NULL; in filt_machportdetach() 961 assert(self->turnstile != TURNSTILE_NULL); in filt_machportprocess()
|
| H A D | mach_msg.c | 499 boolean_t get_turnstile = (self->turnstile == TURNSTILE_NULL); in mach_msg_receive_results_complete() 504 assert(self->turnstile != TURNSTILE_NULL); in mach_msg_receive_results_complete() 527 assert(self->turnstile != TURNSTILE_NULL); in mach_msg_receive_results_complete()
|
| H A D | ipc_importance.c | 2206 struct turnstile *send_turnstile = TURNSTILE_NULL; in ipc_importance_check_circularity() 2356 TURNSTILE_NULL, TURNSTILE_SYNC_IPC); in ipc_importance_check_circularity() 2429 send_turnstile = TURNSTILE_NULL; in ipc_importance_check_circularity()
|
| H A D | ipc_kmsg.c | 1920 assert(port_send_turnstile(port) == TURNSTILE_NULL); in ipc_kmsg_set_prealloc() 1921 kmsg->ikm_turnstile = TURNSTILE_NULL; in ipc_kmsg_set_prealloc()
|
| /xnu-8020.140.41/bsd/kern/ |
| H A D | sys_ulock.c | 303 ull->ull_turnstile = TURNSTILE_NULL; in ull_alloc() 315 assert(ull->ull_turnstile == TURNSTILE_NULL); in ull_free() 700 TURNSTILE_NULL, TURNSTILE_ULOCK); in sys_ulock_wait2() 961 struct turnstile *ts = TURNSTILE_NULL; in ulock_wake() 992 TURNSTILE_NULL, TURNSTILE_ULOCK); in ulock_wake() 993 assert(ts != TURNSTILE_NULL); in ulock_wake() 1035 if (ts != TURNSTILE_NULL) { in ulock_wake()
|
| H A D | kern_event.c | 2006 struct turnstile *ts = TURNSTILE_NULL; in filt_wlupdate() 2497 TURNSTILE_NULL, TURNSTILE_WORKLOOPS); in filt_wlpost_register_wait() 3360 assert(kqwl->kqwl_turnstile == TURNSTILE_NULL); in kqworkloop_dealloc() 4988 struct turnstile *ts = TURNSTILE_NULL; in kqueue_threadreq_initiate() 5561 return TURNSTILE_NULL; in kqueue_alloc_turnstile() 5564 struct turnstile *ts = turnstile_alloc(), *free_ts = TURNSTILE_NULL; in kqueue_alloc_turnstile() 5620 return TURNSTILE_NULL; in kqueue_turnstile() 5631 return TURNSTILE_NULL; in kqueue_threadreq_get_turnstile()
|
| /xnu-8020.140.41/bsd/pthread/ |
| H A D | pthread_shims.c | 234 ts = turnstile_prepare(kwq, tstore, TURNSTILE_NULL, in psynch_wait_prepare() 274 ts = turnstile_prepare(kwq, tstore, TURNSTILE_NULL, in psynch_wait_update_owner() 300 ts = turnstile_prepare(kwq, tstore, TURNSTILE_NULL, in psynch_wait_wakeup()
|
| /xnu-8020.140.41/osfmk/i386/ |
| H A D | locks_i386.c | 1269 ts = turnstile_prepare((uintptr_t)mutex, NULL, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTEX); in lck_mtx_unlock_wakeup_tail() 1321 ts = turnstile_prepare((uintptr_t)mutex, NULL, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTEX); in lck_mtx_lock_acquire_inline() 2388 *ts = turnstile_prepare((uintptr_t)mutex, NULL, TURNSTILE_NULL, TURNSTILE_KERNEL_MUTEX); in lck_mtx_lock_wait_x86()
|