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

Function clean_unrhdrl

freebsd/kern/subr_unit.c:310–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void
311clean_unrhdrl(struct unrhdr *uh)
312{
313 struct unr *up;
314
315 mtx_assert(uh->mtx, MA_OWNED);
316 while ((up = TAILQ_FIRST(&uh->ppfree)) != NULL) {
317 TAILQ_REMOVE(&uh->ppfree, up, list);
318 mtx_unlock(uh->mtx);
319 Free(up);
320 mtx_lock(uh->mtx);
321 }
322
323}
324
325void
326clean_unrhdr(struct unrhdr *uh)

Callers 5

clean_unrhdrFunction · 0.85
alloc_unrFunction · 0.85
free_unrFunction · 0.85
make_dev_svFunction · 0.85
make_dev_alias_vFunction · 0.85

Calls 3

mtx_assertFunction · 0.85
mtx_unlockFunction · 0.70
mtx_lockFunction · 0.70

Tested by

no test coverage detected