Lines Matching refs:lk

69 int	 __lockmgr_args(struct lock *lk, u_int flags, struct lock_object *ilk,
71 int lockmgr_lock_fast_path(struct lock *lk, u_int flags,
73 int lockmgr_unlock_fast_path(struct lock *lk, u_int flags,
76 void _lockmgr_assert(const struct lock *lk, int what, const char *file, int line);
78 void _lockmgr_disown(struct lock *lk, const char *file, int line);
80 void lockallowrecurse(struct lock *lk);
81 void lockallowshare(struct lock *lk);
82 void lockdestroy(struct lock *lk);
83 void lockdisablerecurse(struct lock *lk);
84 void lockdisableshare(struct lock *lk);
85 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo,
90 void lockmgr_printinfo(const struct lock *lk);
91 int lockstatus(const struct lock *lk);
98 _lockmgr_args(struct lock *lk, u_int flags, struct mtx *ilk, const char *wmesg,
102 return (__lockmgr_args(lk, flags, (ilk != NULL) ? &ilk->lock_object :
107 _lockmgr_args_rw(struct lock *lk, u_int flags, struct rwlock *ilk,
111 return (__lockmgr_args(lk, flags, (ilk != NULL) ? &ilk->lock_object :
118 #define lockmgr(lk, flags, ilk) \
119 _lockmgr_args((lk), (flags), (ilk), LK_WMESG_DEFAULT, \
121 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \
122 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \
124 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \
125 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (timo), \
127 #define lockmgr_disown(lk) \
128 _lockmgr_disown((lk), LOCK_FILE, LOCK_LINE)
129 #define lockmgr_recursed(lk) \
130 ((lk)->lk_recurse != 0)
131 #define lockmgr_rw(lk, flags, ilk) \
132 _lockmgr_args_rw((lk), (flags), (ilk), LK_WMESG_DEFAULT, \
134 #define lockmgr_waiters(lk) \
135 ((lk)->lk_lock & LK_ALL_WAITERS)
137 #define lockmgr_assert(lk, what) \
138 _lockmgr_assert((lk), (what), LOCK_FILE, LOCK_LINE)
140 #define lockmgr_assert(lk, what)