static void logfiltdetach(struct knote *kn) { struct klist *klist = &logsoftc.sc_kqp.ki_note; knote_remove(klist, kn); }
static void filt_tmpfsdetach(struct knote *kn) { struct vnode *vp = (void *)kn->kn_hook; knote_remove(&vp->v_pollinfo.vpi_kqinfo.ki_note, kn); }
static void filt_ptcwdetach (struct knote *kn) { struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty; knote_remove(&tp->t_wkq.ki_note, kn); }
PDEVSTATIC void i4bkqfilt_detach(struct knote *kn) { struct klist *klist = &kq_rd_info.ki_note; knote_remove(klist, kn); }
static void cmx_filter_detach(struct knote *kn) { struct cmx_softc *sc = (struct cmx_softc *)kn->kn_hook; struct klist *klist = &sc->kq.ki_note; knote_remove(klist, kn); }
static void snpfilter_detach(struct knote *kn) { struct snoop *snp = (struct snoop *)kn->kn_hook; struct klist *klist; klist = &snp->snp_kq.ki_note; knote_remove(klist, kn); }
static void drmfilt_detach(struct knote *kn) { struct drm_file *file_priv; struct drm_device *dev; struct klist *klist; file_priv = (struct drm_file *)kn->kn_hook; dev = file_priv->dev; lockmgr(&dev->event_lock, LK_EXCLUSIVE); klist = &file_priv->dkq.ki_note; knote_remove(klist, kn); lockmgr(&dev->event_lock, LK_RELEASE); }