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

Function filt_mqdetach

freebsd/kern/uipc_mqueue.c:2623–2634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2621}
2622
2623static void
2624filt_mqdetach(struct knote *kn)
2625{
2626 struct mqueue *mq = FPTOMQ(kn->kn_fp);
2627
2628 if (kn->kn_filter == EVFILT_READ)
2629 knlist_remove(&mq->mq_rsel.si_note, kn, 0);
2630 else if (kn->kn_filter == EVFILT_WRITE)
2631 knlist_remove(&mq->mq_wsel.si_note, kn, 0);
2632 else
2633 panic("filt_mqdetach");
2634}
2635
2636static int
2637filt_mqread(struct knote *kn, long hint)

Callers

nothing calls this directly

Calls 2

knlist_removeFunction · 0.85
panicFunction · 0.70

Tested by

no test coverage detected