| /freebsd-12.1/sys/sys/ |
| H A D | event.h | 219 struct knote; 220 SLIST_HEAD(klist, knote); 242 #define KNOTE(list, hint, flags) knote(list, hint, flags) 244 #define KNOTE_UNLOCKED(list, hint) knote(list, hint, 0) 266 int (*f_attach)(struct knote *kn); 267 void (*f_detach)(struct knote *kn); 268 int (*f_event)(struct knote *kn, long hint); 281 struct knote { struct 282 SLIST_ENTRY(knote) kn_link; /* for kq */ 283 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; 107 typedef int fo_kqfilter_t(struct file *fp, struct knote *kn); 364 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-12.1/sys/kern/ |
| H A D | kern_event.c | 249 kn_list_lock(struct knote *kn) in kn_list_lock() 275 kn_in_flux(struct knote *kn) in kn_in_flux() 533 struct knote *kn; in knote_fork() 686 struct knote *kn; in filt_timerexpire() 1382 struct knote *kn, *tkn; in kqueue_register() 1793 struct knote *kn, *marker; in kqueue_scan() 2084 struct knote *kn; in kqueue_drain() 2242 struct knote *kn, *tkn; in knote() 2503 struct knote *kn, *kn2; in knlist_cleardel() 2566 struct knote *kn; in knote_fdclose() [all …]
|
| 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); 1665 pipe_kqfilter(struct file *fp, struct knote *kn) in pipe_kqfilter() 1709 filt_pipedetach(struct knote *kn) in filt_pipedetach() 1720 filt_piperead(struct knote *kn, long hint) in filt_piperead() 1743 filt_pipewrite(struct knote *kn, long hint) in filt_pipewrite() 1768 filt_pipedetach_notsup(struct knote *kn) in filt_pipedetach_notsup() [all …]
|
| H A D | tty_pts.c | 443 pts_kqops_read_detach(struct knote *kn) in pts_kqops_read_detach() 453 pts_kqops_read_event(struct knote *kn, long hint) in pts_kqops_read_event() 469 pts_kqops_write_detach(struct knote *kn) in pts_kqops_write_detach() 479 pts_kqops_write_event(struct knote *kn, long hint) in pts_kqops_write_event() 506 ptsdev_kqfilter(struct file *fp, struct knote *kn) in ptsdev_kqfilter()
|
| H A D | sys_procdesc.c | 461 procdesc_kqops_detach(struct knote *kn) in procdesc_kqops_detach() 470 procdesc_kqops_event(struct knote *kn, long hint) in procdesc_kqops_event() 511 procdesc_kqfilter(struct file *fp, struct knote *kn) in procdesc_kqfilter()
|
| H A D | vfs_aio.c | 332 static int filt_aioattach(struct knote *kn); 333 static void filt_aiodetach(struct knote *kn); 334 static int filt_aio(struct knote *kn, long hint); 335 static int filt_lioattach(struct knote *kn); 336 static void filt_liodetach(struct knote *kn); 2485 filt_aioattach(struct knote *kn) in filt_aioattach() 2508 filt_aiodetach(struct knote *kn) in filt_aiodetach() 2522 filt_aio(struct knote *kn, long hint) in filt_aio() 2535 filt_lioattach(struct knote *kn) in filt_lioattach() 2558 filt_liodetach(struct knote *kn) in filt_liodetach() [all …]
|
| /freebsd-12.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-12.1/sys/fs/fuse/ |
| H A D | fuse_device.c | 118 static int fuse_device_filt_read(struct knote *kn, long hint); 119 static void fuse_device_filt_detach(struct knote *kn); 173 fuse_device_filter(struct cdev *dev, struct knote *kn) in fuse_device_filter() 195 fuse_device_filt_detach(struct knote *kn) in fuse_device_filt_detach() 206 fuse_device_filt_read(struct knote *kn, long hint) in fuse_device_filt_read()
|
| /freebsd-12.1/sys/compat/linux/ |
| H A D | linux_event.c | 151 static void filt_eventfddetach(struct knote *kn); 152 static int filt_eventfdread(struct knote *kn, long hint); 192 static void filt_timerfddetach(struct knote *kn); 193 static int filt_timerfdread(struct knote *kn, long hint); 869 eventfd_kqfilter(struct file *fp, struct knote *kn) in eventfd_kqfilter() 898 filt_eventfddetach(struct knote *kn) in filt_eventfddetach() 909 filt_eventfdread(struct knote *kn, long hint) in filt_eventfdread() 922 filt_eventfdwrite(struct knote *kn, long hint) in filt_eventfdwrite() 1112 timerfd_kqfilter(struct file *fp, struct knote *kn) in timerfd_kqfilter() 1132 filt_timerfddetach(struct knote *kn) in filt_timerfddetach() [all …]
|
| /freebsd-12.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-12.1/sys/net/ |
| H A D | if_tap.c | 120 static int tapkqread(struct knote *, long); 121 static int tapkqwrite(struct knote *, long); 122 static void tapkqdetach(struct knote *); 1064 tapkqfilter(struct cdev *dev, struct knote *kn) in tapkqfilter() 1102 tapkqread(struct knote *kn, long hint) in tapkqread() 1129 tapkqwrite(struct knote *kn, long hint) in tapkqwrite() 1141 tapkqdetach(struct knote *kn) in tapkqdetach()
|
| H A D | if_tun.c | 149 static int tunkqread(struct knote *, long); 150 static int tunkqwrite(struct knote *, long); 151 static void tunkqdetach(struct knote *); 1049 tunkqfilter(struct cdev *dev, struct knote *kn) in tunkqfilter() 1083 tunkqread(struct knote *kn, long hint) in tunkqread() 1109 tunkqwrite(struct knote *kn, long hint) in tunkqwrite() 1120 tunkqdetach(struct knote *kn) in tunkqdetach()
|
| 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) 180 struct knote *_kn; 185 struct knote *_kn;
|
| /freebsd-12.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); 410 uinput_kqfilter(struct cdev *dev, struct knote *kn) in uinput_kqfilter() 433 uinput_kqread(struct knote *kn, long hint) in uinput_kqread() 447 uinput_kqdetach(struct knote *kn) in uinput_kqdetach()
|
| H A D | cdev.c | 65 static int evdev_kqread(struct knote *kn, long hint); 66 static void evdev_kqdetach(struct knote *kn); 279 evdev_kqfilter(struct cdev *dev, struct knote *kn) in evdev_kqfilter() 305 evdev_kqread(struct knote *kn, long hint) in evdev_kqread() 326 evdev_kqdetach(struct knote *kn) in evdev_kqdetach()
|
| /freebsd-12.1/sys/fs/cuse/ |
| H A D | cuse.c | 154 static void cuse_client_kqfilter_read_detach(struct knote *kn); 155 static void cuse_client_kqfilter_write_detach(struct knote *kn); 156 static int cuse_client_kqfilter_read_event(struct knote *kn, long hint); 157 static int cuse_client_kqfilter_write_event(struct knote *kn, long hint); 1836 cuse_client_kqfilter_read_detach(struct knote *kn) in cuse_client_kqfilter_read_detach() 1847 cuse_client_kqfilter_write_detach(struct knote *kn) in cuse_client_kqfilter_write_detach() 1858 cuse_client_kqfilter_read_event(struct knote *kn, long hint) in cuse_client_kqfilter_read_event() 1869 cuse_client_kqfilter_write_event(struct knote *kn, long hint) in cuse_client_kqfilter_write_event() 1880 cuse_client_kqfilter(struct cdev *dev, struct knote *kn) in cuse_client_kqfilter()
|
| /freebsd-12.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-12.1/sys/arm/ti/ |
| H A D | ti_pruss.c | 80 static void ti_pruss_irq_kqread_detach(struct knote *); 81 static int ti_pruss_irq_kqevent(struct knote *, long); 722 ti_pruss_irq_kqread_detach(struct knote *kn) in ti_pruss_irq_kqread_detach() 730 ti_pruss_irq_kqevent(struct knote *kn, long hint) in ti_pruss_irq_kqevent() 751 ti_pruss_irq_kqfilter(struct cdev *cdev, struct knote *kn) in ti_pruss_irq_kqfilter()
|
| /freebsd-12.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-12.1/sys/cam/scsi/ |
| H A D | scsi_target.c | 110 static void targreadfiltdetach(struct knote *kn); 111 static int targreadfilt(struct knote *kn, long hint); 325 targkqfilter(struct cdev *dev, struct knote *kn) in targkqfilter() 337 targreadfiltdetach(struct knote *kn) in targreadfiltdetach() 347 targreadfilt(struct knote *kn, long hint) in targreadfilt()
|
| /freebsd-12.1/sys/dev/cyapa/ |
| H A D | cyapa.c | 1027 static void cyapafiltdetach(struct knote *); 1028 static int cyapafilt(struct knote *, long); 1037 cyapakqfilter(struct cdev *dev, struct knote *kn) in cyapakqfilter() 1082 cyapafiltdetach(struct knote *kn) in cyapafiltdetach() 1094 cyapafilt(struct knote *kn, long hint) in cyapafilt()
|