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

Function filt_aiodetach

freebsd/kern/vfs_aio.c:2636–2646  ·  view source on GitHub ↗

kqueue detach function */

Source from the content-addressed store, hash-verified

2634
2635/* kqueue detach function */
2636static void
2637filt_aiodetach(struct knote *kn)
2638{
2639 struct knlist *knl;
2640
2641 knl = &kn->kn_ptr.p_aio->klist;
2642 knl->kl_lock(knl->kl_lockarg);
2643 if (!knlist_empty(knl))
2644 knlist_remove(knl, kn, 1);
2645 knl->kl_unlock(knl->kl_lockarg);
2646}
2647
2648/* kqueue filter function */
2649/*ARGSUSED*/

Callers

nothing calls this directly

Calls 2

knlist_emptyFunction · 0.85
knlist_removeFunction · 0.85

Tested by

no test coverage detected