MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lockmgr_note_exclusive_release

Function lockmgr_note_exclusive_release

freebsd/kern/kern_lock.c:238–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238static void
239lockmgr_note_exclusive_release(struct lock *lk, const char *file, int line)
240{
241
242 if (LK_HOLDER(lockmgr_read_value(lk)) != LK_KERNPROC) {
243 WITNESS_UNLOCK(&lk->lock_object, LOP_EXCLUSIVE, file, line);
244 TD_LOCKS_DEC(curthread);
245 }
246 LOCK_LOG_LOCK("XUNLOCK", &lk->lock_object, 0, lk->lk_recurse, file,
247 line);
248}
249
250static __inline struct thread *
251lockmgr_xholder(const struct lock *lk)

Callers 2

lockmgr_unlockFunction · 0.85
__lockmgr_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected