| 379 | } |
| 380 | |
| 381 | void |
| 382 | clear_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 | |
| 401 | static __inline int |
| 402 | is_bitmap(struct unrhdr *uh, struct unr *up) |
nothing calls this directly
no test coverage detected