Searched refs:rw_owner (Results 1 – 4 of 4) sorted by relevance
186 rwlp->rw_owner = NULL; in rw_init()196 rwlp->rw_owner = (void *)-1UL; in rw_destroy()205 ASSERT(rwlp->rw_owner != (void *)-1UL); in rw_enter()206 ASSERT(rwlp->rw_owner != curthread); in rw_enter()216 rwlp->rw_owner = curthread; in rw_enter()224 ASSERT(rwlp->rw_owner != (void *)-1UL); in rw_exit()226 if (rwlp->rw_owner == curthread) { in rw_exit()230 rwlp->rw_owner = NULL; in rw_exit()245 ASSERT(rwlp->rw_owner != (void *)-1UL); in rw_tryenter()246 ASSERT(rwlp->rw_owner != curthread); in rw_tryenter()[all …]
91 #define rw_owner(lock) ((lock)->sx_lock & SX_LOCK_SHARED ? NULL : (struct thread *)SX_OWNER((lock)… macro
275 void *rw_owner; member287 #define RW_READ_HELD(x) ((x)->rw_owner == NULL && (x)->rw_count > 0)290 #define RW_WRITE_HELD(x) ((x)->rw_owner == curthread)
117 #define rw_owner(rw) rw_wowner(rw) macro493 turnstile_wait(ts, rw_owner(rw), TS_SHARED_QUEUE); in _rw_rlock()834 turnstile_wait(ts, rw_owner(rw), TS_EXCLUSIVE_QUEUE); in _rw_wlock_hard()