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

Function knlist_detach

freebsd/kern/kern_event.c:2478–2488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2476}
2477
2478void
2479knlist_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

Callers 2

proc_reapFunction · 0.85
ff_adapt_user_proc_exitFunction · 0.85

Calls 3

knlist_emptyFunction · 0.85
knlist_destroyFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected