| 2476 | } |
| 2477 | |
| 2478 | void |
| 2479 | knlist_detach(struct knlist *knl) |
| 2480 | { |
| 2481 | |
| 2482 | KNL_ASSERT_LOCKED(knl); |
| 2483 | knl->kl_autodestroy = 1; |
| 2484 | if (knlist_empty(knl)) { |
| 2485 | knlist_destroy(knl); |
| 2486 | free(knl, M_KQUEUE); |
| 2487 | } |
| 2488 | } |
| 2489 | |
| 2490 | /* |
| 2491 | * Even if we are locked, we may need to drop the lock to allow any influx |
no test coverage detected