Home
last modified time | relevance | path

Searched refs:LK_HOLDER (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/sys/
H A Dlockmgr.h51 #define LK_HOLDER(x) ((x) & ~LK_FLAGMASK) macro
53 #define LK_SHARERS(x) (LK_HOLDER(x) >> LK_SHARERS_SHIFT)
/f-stack/freebsd/kern/
H A Dkern_lock.c242 if (LK_HOLDER(lockmgr_read_value(lk)) != LK_KERNPROC) { in lockmgr_note_exclusive_release()
256 return ((x & LK_SHARE) ? NULL : (struct thread *)LK_HOLDER(x)); in lockmgr_xholder()
557 owner = (struct thread *)LK_HOLDER(x); in lockmgr_slock_adaptive()
576 owner = (struct thread *)LK_HOLDER(x); in lockmgr_slock_adaptive()
614 if (LK_HOLDER(x) == tid) { in lockmgr_slock_hard()
741 owner = (struct thread *)LK_HOLDER(x); in lockmgr_xlock_adaptive()
760 owner = (struct thread *)LK_HOLDER(x); in lockmgr_xlock_adaptive()
1130 if (LK_HOLDER(x) == LK_KERNPROC) in lockmgr_xunlock_hard()
1628 if (LK_HOLDER(lk->lk_lock) != tid) in _lockmgr_disown()
1694 v = LK_HOLDER(x); in lockstatus()