| /freebsd-13.1/sys/sys/ |
| H A D | event.h | 219 struct knote; 220 SLIST_HEAD(klist, knote); 240 #define KNOTE(list, hint, flags) knote(list, hint, flags) 242 #define KNOTE_UNLOCKED(list, hint) knote(list, hint, 0) 264 int (*f_attach)(struct knote *kn); 265 void (*f_detach)(struct knote *kn); 266 int (*f_event)(struct knote *kn, long hint); 279 struct knote { struct 280 SLIST_ENTRY(knote) kn_link; /* for kq */ 281 SLIST_ENTRY(knote) kn_selnext; /* for struct selinfo */ [all …]
|
| H A D | eventvar.h | 47 TAILQ_HEAD(, knote) kq_head; /* list of pending event */
|
| H A D | file.h | 53 struct knote; 109 typedef int fo_kqfilter_t(struct file *fp, struct knote *kn); 388 fo_kqfilter(struct file *fp, struct knote *kn) in fo_kqfilter()
|
| H A D | conf.h | 108 struct knote; 123 typedef int d_kqfilter_t(struct cdev *dev, struct knote *kn);
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_event.c | 250 kn_list_lock(struct knote *kn) in kn_list_lock() 276 kn_in_flux(struct knote *kn) in kn_in_flux() 534 struct knote *kn; in knote_fork() 681 struct knote *kn; 1484 struct knote *kn, *tkn; in kqueue_register() 1906 struct knote *kn, *marker; in kqueue_scan() 2201 struct knote *kn; in kqueue_drain() 2359 struct knote *kn, *tkn; in knote() 2608 struct knote *kn, *kn2; in knlist_cleardel() 2671 struct knote *kn; in knote_fdclose() [all …]
|
| H A D | sys_eventfd.c | 87 static void filt_eventfddetach(struct knote *kn); 88 static int filt_eventfdread(struct knote *kn, long hint); 89 static int filt_eventfdwrite(struct knote *kn, long hint); 256 eventfd_kqfilter(struct file *fp, struct knote *kn) in eventfd_kqfilter() 281 filt_eventfddetach(struct knote *kn) in filt_eventfddetach() 291 filt_eventfdread(struct knote *kn, long hint) in filt_eventfdread() 304 filt_eventfdwrite(struct knote *kn, long hint) in filt_eventfdwrite()
|
| H A D | subr_log.c | 79 static int logkqread(struct knote *note, long hint); 80 static void logkqdetach(struct knote *note); 199 logkqfilter(struct cdev *dev, struct knote *kn) in logkqfilter() 215 logkqread(struct knote *kn, long hint) in logkqread() 224 logkqdetach(struct knote *kn) in logkqdetach()
|
| H A D | sys_pipe.c | 176 static void filt_pipedetach(struct knote *kn); 177 static void filt_pipedetach_notsup(struct knote *kn); 178 static int filt_pipenotsup(struct knote *kn, long hint); 179 static int filt_piperead(struct knote *kn, long hint); 180 static int filt_pipewrite(struct knote *kn, long hint); 1698 pipe_kqfilter(struct file *fp, struct knote *kn) in pipe_kqfilter() 1742 filt_pipedetach(struct knote *kn) in filt_pipedetach() 1753 filt_piperead(struct knote *kn, long hint) in filt_piperead() 1775 filt_pipewrite(struct knote *kn, long hint) in filt_pipewrite() 1807 filt_pipedetach_notsup(struct knote *kn) in filt_pipedetach_notsup() [all …]
|
| H A D | tty_pts.c | 448 pts_kqops_read_detach(struct knote *kn) in pts_kqops_read_detach() 458 pts_kqops_read_event(struct knote *kn, long hint) in pts_kqops_read_event() 474 pts_kqops_write_detach(struct knote *kn) in pts_kqops_write_detach() 484 pts_kqops_write_event(struct knote *kn, long hint) in pts_kqops_write_event() 511 ptsdev_kqfilter(struct file *fp, struct knote *kn) in ptsdev_kqfilter()
|
| H A D | sys_procdesc.c | 444 procdesc_kqops_detach(struct knote *kn) in procdesc_kqops_detach() 453 procdesc_kqops_event(struct knote *kn, long hint) in procdesc_kqops_event() 494 procdesc_kqfilter(struct file *fp, struct knote *kn) in procdesc_kqfilter()
|
| /freebsd-13.1/sys/fs/fuse/ |
| H A D | fuse_device.c | 122 static int fuse_device_filt_read(struct knote *kn, long hint); 123 static int fuse_device_filt_write(struct knote *kn, long hint); 124 static void fuse_device_filt_detach(struct knote *kn); 183 fuse_device_filter(struct cdev *dev, struct knote *kn) in fuse_device_filter() 207 fuse_device_filt_detach(struct knote *kn) in fuse_device_filt_detach() 218 fuse_device_filt_read(struct knote *kn, long hint) in fuse_device_filt_read() 244 fuse_device_filt_write(struct knote *kn, long hint) in fuse_device_filt_write()
|
| /freebsd-13.1/sys/x86/acpica/ |
| H A D | acpi_apm.c | 64 static void apmreadfiltdetach(struct knote *kn); 65 static int apmreadfilt(struct knote *kn, long hint); 407 apmkqfilter(struct cdev *dev, struct knote *kn) in apmkqfilter() 421 apmreadfiltdetach(struct knote *kn) in apmreadfiltdetach() 432 apmreadfilt(struct knote *kn, long hint) in apmreadfilt()
|
| /freebsd-13.1/sys/dev/beri/ |
| H A D | beri_ring.c | 306 beri_kqread(struct knote *kn, long hint) in beri_kqread() 334 beri_kqwrite(struct knote *kn, long hint) in beri_kqwrite() 362 beri_kqdetach(struct knote *kn) in beri_kqdetach() 386 beri_kqfilter(struct cdev *dev, struct knote *kn) in beri_kqfilter()
|
| /freebsd-13.1/sys/dev/evdev/ |
| H A D | uinput.c | 82 static int uinput_kqread(struct knote *kn, long hint); 83 static void uinput_kqdetach(struct knote *kn); 405 uinput_kqfilter(struct cdev *dev, struct knote *kn) in uinput_kqfilter() 428 uinput_kqread(struct knote *kn, long hint) in uinput_kqread() 442 uinput_kqdetach(struct knote *kn) in uinput_kqdetach()
|
| H A D | cdev.c | 78 static int evdev_kqread(struct knote *kn, long hint); 79 static void evdev_kqdetach(struct knote *kn); 338 evdev_kqfilter(struct cdev *dev, struct knote *kn) in evdev_kqfilter() 364 evdev_kqread(struct knote *kn, long hint) in evdev_kqread() 385 evdev_kqdetach(struct knote *kn) in evdev_kqdetach()
|
| /freebsd-13.1/sys/security/audit/ |
| H A D | audit_pipe.c | 241 static int audit_pipe_kqread(struct knote *note, long hint); 242 static void audit_pipe_kqdetach(struct knote *note); 1007 audit_pipe_kqfilter(struct cdev *dev, struct knote *kn) in audit_pipe_kqfilter() 1031 audit_pipe_kqread(struct knote *kn, long hint) in audit_pipe_kqread() 1051 audit_pipe_kqdetach(struct knote *kn) in audit_pipe_kqdetach()
|
| /freebsd-13.1/sys/net/ |
| H A D | ifdi_if.m | 56 null_knlist_add(if_ctx_t _ctx __unused, struct knote *_kn) 62 null_knote_event(if_ctx_t _ctx __unused, struct knote *_kn, int _hint) 186 struct knote *_kn; 191 struct knote *_kn;
|
| /freebsd-13.1/sys/arm/ti/ |
| H A D | ti_pruss.c | 85 static void ti_pruss_irq_kqread_detach(struct knote *); 86 static int ti_pruss_irq_kqevent(struct knote *, long); 810 ti_pruss_irq_kqread_detach(struct knote *kn) in ti_pruss_irq_kqread_detach() 818 ti_pruss_irq_kqevent(struct knote *kn, long hint) in ti_pruss_irq_kqevent() 839 ti_pruss_irq_kqfilter(struct cdev *cdev, struct knote *kn) in ti_pruss_irq_kqfilter()
|
| /freebsd-13.1/sys/fs/cuse/ |
| H A D | cuse.c | 173 static void cuse_client_kqfilter_read_detach(struct knote *kn); 174 static void cuse_client_kqfilter_write_detach(struct knote *kn); 175 static int cuse_client_kqfilter_read_event(struct knote *kn, long hint); 176 static int cuse_client_kqfilter_write_event(struct knote *kn, long hint); 1854 cuse_client_kqfilter_read_detach(struct knote *kn) in cuse_client_kqfilter_read_detach() 1868 cuse_client_kqfilter_write_detach(struct knote *kn) in cuse_client_kqfilter_write_detach() 1882 cuse_client_kqfilter_read_event(struct knote *kn, long hint) in cuse_client_kqfilter_read_event() 1894 cuse_client_kqfilter_write_event(struct knote *kn, long hint) in cuse_client_kqfilter_write_event() 1906 cuse_client_kqfilter(struct cdev *dev, struct knote *kn) in cuse_client_kqfilter()
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_event.c | 138 static void filt_timerfddetach(struct knote *kn); 139 static int filt_timerfdread(struct knote *kn, long hint); 750 timerfd_kqfilter(struct file *fp, struct knote *kn) in timerfd_kqfilter() 770 filt_timerfddetach(struct knote *kn) in filt_timerfddetach() 780 filt_timerfdread(struct knote *kn, long hint) in filt_timerfdread()
|
| /freebsd-13.1/sys/dev/hid/ |
| H A D | hidraw.c | 145 static int hidraw_kqread(struct knote *, long); 146 static void hidraw_kqdetach(struct knote *); 809 hidraw_kqfilter(struct cdev *dev, struct knote *kn) in hidraw_kqfilter() 834 hidraw_kqread(struct knote *kn, long hint) in hidraw_kqread() 853 hidraw_kqdetach(struct knote *kn) in hidraw_kqdetach()
|
| /freebsd-13.1/sys/geom/ |
| H A D | geom_dev.c | 81 static void gdev_filter_detach(struct knote *kn); 82 static int gdev_filter_vnode(struct knote *kn, long hint); 907 gdev_filter_detach(struct knote *kn) in gdev_filter_detach() 917 gdev_filter_vnode(struct knote *kn, long hint) in gdev_filter_vnode() 925 g_dev_kqfilter(struct cdev *dev, struct knote *kn) in g_dev_kqfilter()
|
| /freebsd-13.1/sys/dev/netmap/ |
| H A D | netmap_freebsd.c | 1370 netmap_knrdetach(struct knote *kn) in netmap_knrdetach() 1385 netmap_knwdetach(struct knote *kn) in netmap_knwdetach() 1405 netmap_knrw(struct knote *kn, long hint, int events) in netmap_knrw() 1425 netmap_knread(struct knote *kn, long hint) in netmap_knread() 1431 netmap_knwrite(struct knote *kn, long hint) in netmap_knwrite() 1455 netmap_kqfilter(struct cdev *dev, struct knote *kn) in netmap_kqfilter()
|
| /freebsd-13.1/sys/cam/scsi/ |
| H A D | scsi_target.c | 108 static void targreadfiltdetach(struct knote *kn); 109 static int targreadfilt(struct knote *kn, long hint); 322 targkqfilter(struct cdev *dev, struct knote *kn) in targkqfilter() 334 targreadfiltdetach(struct knote *kn) in targreadfiltdetach() 344 targreadfilt(struct knote *kn, long hint) in targreadfilt()
|
| /freebsd-13.1/sys/dev/gpio/ |
| H A D | gpioc.c | 132 static int gpioc_kqread(struct knote*, long); 133 static void gpioc_kqdetach(struct knote*); 984 gpioc_kqfilter(struct cdev *dev, struct knote *kn) in gpioc_kqfilter() 1013 gpioc_kqread(struct knote *kn, long hint) in gpioc_kqread() 1036 gpioc_kqdetach(struct knote *kn) in gpioc_kqdetach()
|