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

Function clear_unrhdr

freebsd/kern/subr_unit.c:381–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381void
382clear_unrhdr(struct unrhdr *uh)
383{
384 struct unr *up, *uq;
385
386 KASSERT(TAILQ_EMPTY(&uh->ppfree),
387 ("unrhdr has postponed item for free"));
388 TAILQ_FOREACH_SAFE(up, &uh->head, list, uq) {
389 if (up->ptr != uh) {
390 Free(up->ptr);
391 }
392 Free(up);
393 }
394 uh->busy = 0;
395 uh->alloc = 0;
396 init_unrhdr(uh, uh->low, uh->high, uh->mtx);
397
398 check_unrhdr(uh, __LINE__);
399}
400
401static __inline int
402is_bitmap(struct unrhdr *uh, struct unr *up)

Callers

nothing calls this directly

Calls 2

init_unrhdrFunction · 0.85
check_unrhdrFunction · 0.85

Tested by

no test coverage detected