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

Function lockdestroy

freebsd/kern/kern_lock.c:502–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void
503lockdestroy(struct lock *lk)
504{
505
506 KASSERT(lk->lk_lock == LK_UNLOCKED, ("lockmgr still held"));
507 KASSERT(lk->lk_recurse == 0, ("lockmgr still recursed"));
508 KASSERT(lk->lk_exslpfail == 0, ("lockmgr still exclusive waiters"));
509 lock_destroy(&lk->lock_object);
510}
511
512static bool __always_inline
513lockmgr_slock_try(struct lock *lk, uintptr_t *xp, int flags, bool fp)

Callers 2

vnode_finiFunction · 0.85
mount_finiFunction · 0.85

Calls 1

lock_destroyFunction · 0.85

Tested by

no test coverage detected