| 308 | } |
| 309 | |
| 310 | void |
| 311 | clean_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 | |
| 325 | void |
| 326 | clean_unrhdr(struct unrhdr *uh) |
no test coverage detected