| 2621 | } |
| 2622 | |
| 2623 | static void |
| 2624 | filt_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 | |
| 2636 | static int |
| 2637 | filt_mqread(struct knote *kn, long hint) |
nothing calls this directly
no test coverage detected