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

Function filt_eventfddetach

freebsd/kern/sys_eventfd.c:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280static void
281filt_eventfddetach(struct knote *kn)
282{
283 struct eventfd *efd = kn->kn_hook;
284
285 mtx_lock(&efd->efd_lock);
286 knlist_remove(&efd->efd_sel.si_note, kn, 1);
287 mtx_unlock(&efd->efd_lock);
288}
289
290static int
291filt_eventfdread(struct knote *kn, long hint)

Callers

nothing calls this directly

Calls 3

knlist_removeFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected