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

Function _rw_destroy

freebsd/kern/kern_rwlock.c:243–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void
244_rw_destroy(volatile uintptr_t *c)
245{
246 struct rwlock *rw;
247
248 rw = rwlock2rw(c);
249
250 KASSERT(rw->rw_lock == RW_UNLOCKED, ("rw lock %p not unlocked", rw));
251 KASSERT(rw->rw_recurse == 0, ("rw lock %p still recursed", rw));
252 rw->rw_lock = RW_DESTROYED;
253 lock_destroy(&rw->lock_object);
254}
255
256void
257rw_sysinit(void *arg)

Callers

nothing calls this directly

Calls 1

lock_destroyFunction · 0.85

Tested by

no test coverage detected