Home
last modified time | relevance | path

Searched refs:knote (Results 1 – 25 of 55) sorted by relevance

123

/freebsd/sys/sys/
H A Devent.h233 struct knote;
234 SLIST_HEAD(klist, knote);
254 #define KNOTE(list, hint, flags) knote(list, hint, flags)
255 #define KNOTE_LOCKED(list, hint) knote(list, hint, KNF_LISTLOCKED)
256 #define KNOTE_UNLOCKED(list, hint) knote(list, hint, 0)
281 int (*f_attach)(struct knote *kn);
282 void (*f_detach)(struct knote *kn);
283 int (*f_event)(struct knote *kn, long hint);
284 void (*f_touch)(struct knote *kn, struct kevent *kev, u_long type);
285 int (*f_userdump)(struct proc *p, struct knote *kn,
[all …]
H A Dprotosw.h54 struct knote;
94 typedef int pr_kqfilter_t(struct socket *, struct knote *);
H A Deventvar.h45 TAILQ_HEAD(, knote) kq_head; /* list of pending event */
/freebsd/sys/kern/
H A Dkern_event.c157 static int knote_attach(struct knote *kn, struct kqueue *kq);
158 static void knote_drop(struct knote *kn, struct thread *td);
159 static void knote_drop_detached(struct knote *kn, struct thread *td);
160 static void knote_enqueue(struct knote *kn);
161 static void knote_dequeue(struct knote *kn);
163 static struct knote *knote_alloc(int mflag);
164 static void knote_free(struct knote *kn);
166 static void filt_kqdetach(struct knote *kn);
167 static int filt_kqueue(struct knote *kn, long hint);
168 static int filt_procattach(struct knote *kn);
[all …]
H A Dsys_eventfd.c82 static void filt_eventfddetach(struct knote *kn);
83 static int filt_eventfdread(struct knote *kn, long hint);
84 static int filt_eventfdwrite(struct knote *kn, long hint);
298 eventfd_kqfilter(struct file *fp, struct knote *kn) in eventfd_kqfilter()
323 filt_eventfddetach(struct knote *kn) in filt_eventfddetach()
333 filt_eventfdread(struct knote *kn, long hint) in filt_eventfdread()
346 filt_eventfdwrite(struct knote *kn, long hint) in filt_eventfdwrite()
H A Dsubr_log.c74 static int logkqread(struct knote *note, long hint);
75 static void logkqdetach(struct knote *note);
195 logkqfilter(struct cdev *dev, struct knote *kn) in logkqfilter()
211 logkqread(struct knote *kn, long hint) in logkqread()
220 logkqdetach(struct knote *kn) in logkqdetach()
H A Dkern_devctl.c126 static void filt_devctl_detach(struct knote *kn);
127 static int filt_devctl_read(struct knote *kn, long hint);
334 devkqfilter(struct cdev *dev, struct knote *kn) in devkqfilter()
348 filt_devctl_detach(struct knote *kn) in filt_devctl_detach()
354 filt_devctl_read(struct knote *kn, long hint) in filt_devctl_read()
H A Dsys_pipe.c173 static void filt_pipedetach(struct knote *kn);
174 static void filt_pipedetach_notsup(struct knote *kn);
175 static int filt_pipenotsup(struct knote *kn, long hint);
176 static int filt_piperead(struct knote *kn, long hint);
177 static int filt_pipewrite(struct knote *kn, long hint);
178 static int filt_pipedump(struct proc *p, struct knote *kn,
1788 pipe_kqfilter(struct file *fp, struct knote *kn) in pipe_kqfilter()
1836 filt_pipedetach(struct knote *kn) in filt_pipedetach()
1847 filt_piperead(struct knote *kn, long hint) in filt_piperead()
1869 filt_pipewrite(struct knote *kn, long hint) in filt_pipewrite()
[all …]
H A Dtty_pts.c439 pts_kqops_read_detach(struct knote *kn) in pts_kqops_read_detach()
449 pts_kqops_read_event(struct knote *kn, long hint) in pts_kqops_read_event()
465 pts_kqops_write_detach(struct knote *kn) in pts_kqops_write_detach()
475 pts_kqops_write_event(struct knote *kn, long hint) in pts_kqops_write_event()
504 ptsdev_kqfilter(struct file *fp, struct knote *kn) in ptsdev_kqfilter()
H A Dkern_jaildesc.c323 jaildesc_kqops_detach(struct knote *kn) in jaildesc_kqops_detach()
332 jaildesc_kqops_event(struct knote *kn, long hint) in jaildesc_kqops_event()
386 jaildesc_kqfilter(struct file *fp, struct knote *kn) in jaildesc_kqfilter()
H A Dsys_procdesc.c450 procdesc_kqops_detach(struct knote *kn) in procdesc_kqops_detach()
459 procdesc_kqops_event(struct knote *kn, long hint) in procdesc_kqops_event()
501 procdesc_kqfilter(struct file *fp, struct knote *kn) in procdesc_kqfilter()
/freebsd/sys/dev/null/
H A Dnull.c59 static int one_ev(struct knote *kn, long hint);
60 static int zero_ev(struct knote *kn, long hint);
221 one_ev(struct knote *kn, long hint) in one_ev()
228 zero_ev(struct knote *kn, long hint) in zero_ev()
235 kqfilter(struct cdev *dev, struct knote *kn) in kqfilter()
/freebsd/sys/netgraph/
H A Dng_device.c148 static int ngd_kqread_event(struct knote *, long);
149 static int ngd_kqwrite_event(struct knote *, long);
150 static void ngd_kqread_detach(struct knote *);
151 static void ngd_kqwrite_detach(struct knote *);
617 ngd_kqread_detach(struct knote *kn) in ngd_kqread_detach()
625 ngd_kqread_event(struct knote *kn, long hint) in ngd_kqread_event()
649 ngd_kqwrite_detach(struct knote *kn) in ngd_kqwrite_detach()
657 ngd_kqwrite_event(struct knote *kn, long hint) in ngd_kqwrite_event()
665 ngdkqfilter(struct cdev *dev, struct knote *kn) in ngdkqfilter()
/freebsd/sys/fs/fuse/
H A Dfuse_device.c120 static int fuse_device_filt_read(struct knote *kn, long hint);
121 static int fuse_device_filt_write(struct knote *kn, long hint);
122 static void fuse_device_filt_detach(struct knote *kn);
188 fuse_device_filter(struct cdev *dev, struct knote *kn) in fuse_device_filter()
212 fuse_device_filt_detach(struct knote *kn) in fuse_device_filt_detach()
223 fuse_device_filt_read(struct knote *kn, long hint) in fuse_device_filt_read()
249 fuse_device_filt_write(struct knote *kn, long hint) in fuse_device_filt_write()
/freebsd/sys/x86/acpica/
H A Dacpi_apm.c61 static void apmreadfiltdetach(struct knote *kn);
62 static int apmreadfilt(struct knote *kn, long hint);
406 apmkqfilter(struct cdev *dev, struct knote *kn) in apmkqfilter()
420 apmreadfiltdetach(struct knote *kn) in apmreadfiltdetach()
431 apmreadfilt(struct knote *kn, long hint) in apmreadfilt()
/freebsd/sys/dev/qat/qat_common/
H A Dadf_freebsd_dev_processes.c33 static int adf_state_kqfilter(struct cdev *dev, struct knote *kn);
34 static int adf_state_kqread_event(struct knote *kn, long hint);
35 static void adf_state_kqread_detach(struct knote *kn);
466 adf_state_kqfilter(struct cdev *dev, struct knote *kn) in adf_state_kqfilter()
486 adf_state_kqread_event(struct knote *kn, long hint) in adf_state_kqread_event()
492 adf_state_kqread_detach(struct knote *kn) in adf_state_kqread_detach()
/freebsd/sys/dev/hid/
H A Du2f.c127 static int u2f_kqread(struct knote *, long);
128 static void u2f_kqdetach(struct knote *);
505 u2f_kqfilter(struct cdev *dev, struct knote *kn) in u2f_kqfilter()
537 u2f_kqread(struct knote *kn, long hint) in u2f_kqread()
557 u2f_kqdetach(struct knote *kn) in u2f_kqdetach()
/freebsd/sys/dev/evdev/
H A Duinput.c80 static int uinput_kqread(struct knote *kn, long hint);
81 static void uinput_kqdetach(struct knote *kn);
404 uinput_kqfilter(struct cdev *dev, struct knote *kn) in uinput_kqfilter()
427 uinput_kqread(struct knote *kn, long hint) in uinput_kqread()
441 uinput_kqdetach(struct knote *kn) in uinput_kqdetach()
H A Dcdev.c76 static int evdev_kqread(struct knote *kn, long hint);
77 static void evdev_kqdetach(struct knote *kn);
337 evdev_kqfilter(struct cdev *dev, struct knote *kn) in evdev_kqfilter()
363 evdev_kqread(struct knote *kn, long hint) in evdev_kqread()
384 evdev_kqdetach(struct knote *kn) in evdev_kqdetach()
/freebsd/sys/security/audit/
H A Daudit_pipe.c238 static int audit_pipe_kqread(struct knote *note, long hint);
239 static void audit_pipe_kqdetach(struct knote *note);
1005 audit_pipe_kqfilter(struct cdev *dev, struct knote *kn) in audit_pipe_kqfilter()
1029 audit_pipe_kqread(struct knote *kn, long hint) in audit_pipe_kqread()
1049 audit_pipe_kqdetach(struct knote *kn) in audit_pipe_kqdetach()
/freebsd/sys/arm/ti/
H A Dti_pruss.c83 static void ti_pruss_irq_kqread_detach(struct knote *);
84 static int ti_pruss_irq_kqevent(struct knote *, long);
800 ti_pruss_irq_kqread_detach(struct knote *kn) in ti_pruss_irq_kqread_detach()
808 ti_pruss_irq_kqevent(struct knote *kn, long hint) in ti_pruss_irq_kqevent()
829 ti_pruss_irq_kqfilter(struct cdev *cdev, struct knote *kn) in ti_pruss_irq_kqfilter()
/freebsd/sys/dev/netmap/
H A Dnetmap_freebsd.c1344 netmap_knrdetach(struct knote *kn) in netmap_knrdetach()
1359 netmap_knwdetach(struct knote *kn) in netmap_knwdetach()
1379 netmap_knrw(struct knote *kn, long hint, int events) in netmap_knrw()
1399 netmap_knread(struct knote *kn, long hint) in netmap_knread()
1405 netmap_knwrite(struct knote *kn, long hint) in netmap_knwrite()
1411 netmap_kncopy(struct knote *kn, struct proc *p1) in netmap_kncopy()
1444 netmap_kqfilter(struct cdev *dev, struct knote *kn) in netmap_kqfilter()
/freebsd/sys/fs/cuse/
H A Dcuse.c189 static void cuse_client_kqfilter_read_detach(struct knote *kn);
190 static void cuse_client_kqfilter_write_detach(struct knote *kn);
191 static int cuse_client_kqfilter_read_event(struct knote *kn, long hint);
192 static int cuse_client_kqfilter_write_event(struct knote *kn, long hint);
1949 cuse_client_kqfilter_read_detach(struct knote *kn) in cuse_client_kqfilter_read_detach()
1963 cuse_client_kqfilter_write_detach(struct knote *kn) in cuse_client_kqfilter_write_detach()
1977 cuse_client_kqfilter_read_event(struct knote *kn, long hint) in cuse_client_kqfilter_read_event()
1989 cuse_client_kqfilter_write_event(struct knote *kn, long hint) in cuse_client_kqfilter_write_event()
2001 cuse_client_kqfilter(struct cdev *dev, struct knote *kn) in cuse_client_kqfilter()
/freebsd/sys/geom/
H A Dgeom_dev.c78 static void gdev_filter_detach(struct knote *kn);
79 static int gdev_filter_vnode(struct knote *kn, long hint);
879 gdev_filter_detach(struct knote *kn) in gdev_filter_detach()
889 gdev_filter_vnode(struct knote *kn, long hint) in gdev_filter_vnode()
897 g_dev_kqfilter(struct cdev *dev, struct knote *kn) in g_dev_kqfilter()
/freebsd/sys/cam/scsi/
H A Dscsi_target.c105 static void targreadfiltdetach(struct knote *kn);
106 static int targreadfilt(struct knote *kn, long hint);
320 targkqfilter(struct cdev *dev, struct knote *kn) in targkqfilter()
332 targreadfiltdetach(struct knote *kn) in targreadfiltdetach()
342 targreadfilt(struct knote *kn, long hint) in targreadfilt()

123