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

Function lock_destroy

freebsd/kern/subr_lock.c:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void
101lock_destroy(struct lock_object *lock)
102{
103
104 KASSERT(lock_initialized(lock), ("lock %p is not initialized", lock));
105 WITNESS_DESTROY(lock);
106 LOCK_LOG_DESTROY(lock, 0);
107 lock->lo_flags &= ~LO_INITIALIZED;
108}
109
110static SYSCTL_NODE(_debug, OID_AUTO, lock, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL,
111 "lock debugging");

Callers 5

rm_destroyFunction · 0.85
_rw_destroyFunction · 0.85
sx_destroyFunction · 0.85
lockdestroyFunction · 0.85
_mtx_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected