| /freebsd-14.2/sys/sys/ |
| H A D | event.h | 222 struct knote; 223 SLIST_HEAD(klist, knote); 243 #define KNOTE(list, hint, flags) knote(list, hint, flags) 245 #define KNOTE_UNLOCKED(list, hint) knote(list, hint, 0) 267 int (*f_attach)(struct knote *kn); 268 void (*f_detach)(struct knote *kn); 269 int (*f_event)(struct knote *kn, long hint); 282 struct knote { struct 283 SLIST_ENTRY(knote) kn_link; /* for kq */ 284 SLIST_ENTRY(knote) kn_selnext; /* for struct selinfo */ [all …]
|
| H A D | eventvar.h | 45 TAILQ_HEAD(, knote) kq_head; /* list of pending event */
|
| H A D | file.h | 52 struct knote; 108 typedef int fo_kqfilter_t(struct file *fp, struct knote *kn); 396 fo_kqfilter(struct file *fp, struct knote *kn) in fo_kqfilter()
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_event.c | 248 kn_list_lock(struct knote *kn) in kn_list_lock() 274 kn_in_flux(struct knote *kn) in kn_in_flux() 531 struct knote *kn; in knote_fork() 678 struct knote *kn; 1494 struct knote *kn, *tkn; in kqueue_register() 1919 struct knote *kn, *marker; in kqueue_scan() 2212 struct knote *kn; in kqueue_drain() 2374 struct knote *kn, *tkn; in knote() 2591 struct knote *kn, *kn2; in knlist_cleardel() 2654 struct knote *kn; in knote_fdclose() [all …]
|
| H A D | sys_eventfd.c | 84 static void filt_eventfddetach(struct knote *kn); 85 static int filt_eventfdread(struct knote *kn, long hint); 86 static int filt_eventfdwrite(struct knote *kn, long hint); 253 eventfd_kqfilter(struct file *fp, struct knote *kn) in eventfd_kqfilter() 278 filt_eventfddetach(struct knote *kn) in filt_eventfddetach() 288 filt_eventfdread(struct knote *kn, long hint) in filt_eventfdread() 301 filt_eventfdwrite(struct knote *kn, long hint) in filt_eventfdwrite()
|
| H A D | subr_log.c | 77 static int logkqread(struct knote *note, long hint); 78 static void logkqdetach(struct knote *note); 197 logkqfilter(struct cdev *dev, struct knote *kn) in logkqfilter() 213 logkqread(struct knote *kn, long hint) in logkqread() 222 logkqdetach(struct knote *kn) in logkqdetach()
|
| H A D | kern_devctl.c | 126 static void filt_devctl_detach(struct knote *kn); 127 static int filt_devctl_read(struct knote *kn, long hint); 333 devkqfilter(struct cdev *dev, struct knote *kn) in devkqfilter() 347 filt_devctl_detach(struct knote *kn) in filt_devctl_detach() 353 filt_devctl_read(struct knote *kn, long hint) in filt_devctl_read()
|
| H A D | sys_pipe.c | 174 static void filt_pipedetach(struct knote *kn); 175 static void filt_pipedetach_notsup(struct knote *kn); 176 static int filt_pipenotsup(struct knote *kn, long hint); 177 static int filt_piperead(struct knote *kn, long hint); 178 static int filt_pipewrite(struct knote *kn, long hint); 1780 pipe_kqfilter(struct file *fp, struct knote *kn) in pipe_kqfilter() 1828 filt_pipedetach(struct knote *kn) in filt_pipedetach() 1839 filt_piperead(struct knote *kn, long hint) in filt_piperead() 1861 filt_pipewrite(struct knote *kn, long hint) in filt_pipewrite() 1893 filt_pipedetach_notsup(struct knote *kn) in filt_pipedetach_notsup() [all …]
|
| H A D | tty_pts.c | 440 pts_kqops_read_detach(struct knote *kn) in pts_kqops_read_detach() 450 pts_kqops_read_event(struct knote *kn, long hint) in pts_kqops_read_event() 466 pts_kqops_write_detach(struct knote *kn) in pts_kqops_write_detach() 476 pts_kqops_write_event(struct knote *kn, long hint) in pts_kqops_write_event() 503 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()
|
| H A D | sys_timerfd.c | 268 filt_timerfddetach(struct knote *kn) in filt_timerfddetach() 278 filt_timerfdread(struct knote *kn, long hint) in filt_timerfdread() 294 timerfd_kqfilter(struct file *fp, struct knote *kn) in timerfd_kqfilter()
|
| /freebsd-14.2/sys/fs/fuse/ |
| H A D | fuse_device.c | 120 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); 181 fuse_device_filter(struct cdev *dev, struct knote *kn) in fuse_device_filter() 205 fuse_device_filt_detach(struct knote *kn) in fuse_device_filt_detach() 216 fuse_device_filt_read(struct knote *kn, long hint) in fuse_device_filt_read() 242 fuse_device_filt_write(struct knote *kn, long hint) in fuse_device_filt_write()
|
| /freebsd-14.2/sys/x86/acpica/ |
| H A D | acpi_apm.c | 62 static void apmreadfiltdetach(struct knote *kn); 63 static int apmreadfilt(struct knote *kn, long hint); 405 apmkqfilter(struct cdev *dev, struct knote *kn) in apmkqfilter() 419 apmreadfiltdetach(struct knote *kn) in apmreadfiltdetach() 430 apmreadfilt(struct knote *kn, long hint) in apmreadfilt()
|
| /freebsd-14.2/sys/dev/qat/qat_common/ |
| H A D | adf_freebsd_dev_processes.c | 34 static int adf_state_kqfilter(struct cdev *dev, struct knote *kn); 35 static int adf_state_kqread_event(struct knote *kn, long hint); 36 static void adf_state_kqread_detach(struct knote *kn); 477 adf_state_kqfilter(struct cdev *dev, struct knote *kn) in adf_state_kqfilter() 497 adf_state_kqread_event(struct knote *kn, long hint) in adf_state_kqread_event() 503 adf_state_kqread_detach(struct knote *kn) in adf_state_kqread_detach()
|
| /freebsd-14.2/sys/dev/beri/ |
| H A D | beri_ring.c | 304 beri_kqread(struct knote *kn, long hint) in beri_kqread() 332 beri_kqwrite(struct knote *kn, long hint) in beri_kqwrite() 360 beri_kqdetach(struct knote *kn) in beri_kqdetach() 384 beri_kqfilter(struct cdev *dev, struct knote *kn) in beri_kqfilter()
|
| /freebsd-14.2/sys/dev/evdev/ |
| H A D | uinput.c | 80 static int uinput_kqread(struct knote *kn, long hint); 81 static void uinput_kqdetach(struct knote *kn); 403 uinput_kqfilter(struct cdev *dev, struct knote *kn) in uinput_kqfilter() 426 uinput_kqread(struct knote *kn, long hint) in uinput_kqread() 440 uinput_kqdetach(struct knote *kn) in uinput_kqdetach()
|
| H A D | cdev.c | 76 static int evdev_kqread(struct knote *kn, long hint); 77 static void evdev_kqdetach(struct knote *kn); 336 evdev_kqfilter(struct cdev *dev, struct knote *kn) in evdev_kqfilter() 362 evdev_kqread(struct knote *kn, long hint) in evdev_kqread() 383 evdev_kqdetach(struct knote *kn) in evdev_kqdetach()
|
| /freebsd-14.2/sys/security/audit/ |
| H A D | audit_pipe.c | 239 static int audit_pipe_kqread(struct knote *note, long hint); 240 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-14.2/sys/arm/ti/ |
| H A D | ti_pruss.c | 83 static void ti_pruss_irq_kqread_detach(struct knote *); 84 static int ti_pruss_irq_kqevent(struct knote *, long); 799 ti_pruss_irq_kqread_detach(struct knote *kn) in ti_pruss_irq_kqread_detach() 807 ti_pruss_irq_kqevent(struct knote *kn, long hint) in ti_pruss_irq_kqevent() 828 ti_pruss_irq_kqfilter(struct cdev *cdev, struct knote *kn) in ti_pruss_irq_kqfilter()
|
| /freebsd-14.2/sys/fs/cuse/ |
| H A D | cuse.c | 189 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); 1955 cuse_client_kqfilter_read_detach(struct knote *kn) in cuse_client_kqfilter_read_detach() 1969 cuse_client_kqfilter_write_detach(struct knote *kn) in cuse_client_kqfilter_write_detach() 1983 cuse_client_kqfilter_read_event(struct knote *kn, long hint) in cuse_client_kqfilter_read_event() 1995 cuse_client_kqfilter_write_event(struct knote *kn, long hint) in cuse_client_kqfilter_write_event() 2007 cuse_client_kqfilter(struct cdev *dev, struct knote *kn) in cuse_client_kqfilter()
|
| /freebsd-14.2/sys/geom/ |
| H A D | geom_dev.c | 79 static void gdev_filter_detach(struct knote *kn); 80 static int gdev_filter_vnode(struct knote *kn, long hint); 872 gdev_filter_detach(struct knote *kn) in gdev_filter_detach() 882 gdev_filter_vnode(struct knote *kn, long hint) in gdev_filter_vnode() 890 g_dev_kqfilter(struct cdev *dev, struct knote *kn) in g_dev_kqfilter()
|
| /freebsd-14.2/sys/dev/netmap/ |
| H A D | netmap_freebsd.c | 1334 netmap_knrdetach(struct knote *kn) in netmap_knrdetach() 1349 netmap_knwdetach(struct knote *kn) in netmap_knwdetach() 1369 netmap_knrw(struct knote *kn, long hint, int events) in netmap_knrw() 1389 netmap_knread(struct knote *kn, long hint) in netmap_knread() 1395 netmap_knwrite(struct knote *kn, long hint) in netmap_knwrite() 1419 netmap_kqfilter(struct cdev *dev, struct knote *kn) in netmap_kqfilter()
|
| /freebsd-14.2/sys/dev/hid/ |
| H A D | hidraw.c | 171 static int hidraw_kqread(struct knote *, long); 172 static void hidraw_kqdetach(struct knote *); 923 hidraw_kqfilter(struct cdev *dev, struct knote *kn) in hidraw_kqfilter() 948 hidraw_kqread(struct knote *kn, long hint) in hidraw_kqread() 967 hidraw_kqdetach(struct knote *kn) in hidraw_kqdetach()
|
| /freebsd-14.2/sys/dev/gpio/ |
| H A D | gpioc.c | 130 static int gpioc_kqread(struct knote*, long); 131 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()
|
| /freebsd-14.2/sys/cam/scsi/ |
| H A D | scsi_target.c | 106 static void targreadfiltdetach(struct knote *kn); 107 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()
|