Lines Matching defs:kn
83 static void filt_eventfddetach(struct knote *kn);
84 static int filt_eventfdread(struct knote *kn, long hint);
85 static int filt_eventfdwrite(struct knote *kn, long hint);
252 eventfd_kqfilter(struct file *fp, struct knote *kn)
257 switch (kn->kn_filter) {
259 kn->kn_fop = &eventfd_rfiltops;
262 kn->kn_fop = &eventfd_wfiltops;
269 kn->kn_hook = efd;
270 knlist_add(&efd->efd_sel.si_note, kn, 1);
277 filt_eventfddetach(struct knote *kn)
279 struct eventfd *efd = kn->kn_hook;
282 knlist_remove(&efd->efd_sel.si_note, kn, 1);
287 filt_eventfdread(struct knote *kn, long hint)
289 struct eventfd *efd = kn->kn_hook;
293 kn->kn_data = (int64_t)efd->efd_count;
300 filt_eventfdwrite(struct knote *kn, long hint)
302 struct eventfd *efd = kn->kn_hook;
306 kn->kn_data = (int64_t)(UINT64_MAX - 1 - efd->efd_count);