/freebsd/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) 244 #define KNOTE_LOCKED(list, hint) knote(list, hint, KNF_LISTLOCKED) 245 #define KNOTE_UNLOCKED(list, hint) knote(list, hint, 0) 270 int (*f_attach)(struct knote *kn); 271 void (*f_detach)(struct knote *kn); 272 int (*f_event)(struct knote *kn, long hint); 273 void (*f_touch)(struct knote *kn, struct kevent *kev, u_long type); 274 int (*f_userdump)(struct proc *p, struct knote *kn, [all …]
|
H A D | eventvar.h | 45 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); 397 fo_kqfilter(struct file *fp, struct knote *kn) in fo_kqfilter()
|
H A D | conf.h | 106 struct knote; 121 typedef int d_kqfilter_t(struct cdev *dev, struct knote *kn);
|
/freebsd/sys/kern/ |
H A D | kern_event.c | 147 static int knote_attach(struct knote *kn, struct kqueue *kq); 148 static void knote_drop(struct knote *kn, struct thread *td); 149 static void knote_drop_detached(struct knote *kn, struct thread *td); 150 static void knote_enqueue(struct knote *kn); 151 static void knote_dequeue(struct knote *kn); 153 static struct knote *knote_alloc(int mflag); 154 static void knote_free(struct knote *kn); 156 static void filt_kqdetach(struct knote *kn); 157 static int filt_kqueue(struct knote *kn, long hint); 158 static int filt_procattach(struct knote *kn); [all …]
|
H A D | sys_eventfd.c | 81 static void filt_eventfddetach(struct knote *kn); 82 static int filt_eventfdread(struct knote *kn, long hint); 83 static int filt_eventfdwrite(struct knote *kn, long hint); 250 eventfd_kqfilter(struct file *fp, struct knote *kn) in eventfd_kqfilter() 275 filt_eventfddetach(struct knote *kn) in filt_eventfddetach() 285 filt_eventfdread(struct knote *kn, long hint) in filt_eventfdread() 298 filt_eventfdwrite(struct knote *kn, long hint) in filt_eventfdwrite()
|
H A D | subr_log.c | 74 static int logkqread(struct knote *note, long hint); 75 static void logkqdetach(struct knote *note); 194 logkqfilter(struct cdev *dev, struct knote *kn) in logkqfilter() 210 logkqread(struct knote *kn, long hint) in logkqread() 219 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 | 173 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, 1784 pipe_kqfilter(struct file *fp, struct knote *kn) in pipe_kqfilter() 1832 filt_pipedetach(struct knote *kn) in filt_pipedetach() 1843 filt_piperead(struct knote *kn, long hint) in filt_piperead() 1865 filt_pipewrite(struct knote *kn, long hint) in filt_pipewrite() [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 | 441 procdesc_kqops_detach(struct knote *kn) in procdesc_kqops_detach() 450 procdesc_kqops_event(struct knote *kn, long hint) in procdesc_kqops_event() 491 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/sys/fs/fuse/ |
H A D | fuse_device.c | 119 static int fuse_device_filt_read(struct knote *kn, long hint); 120 static int fuse_device_filt_write(struct knote *kn, long hint); 121 static void fuse_device_filt_detach(struct knote *kn); 180 fuse_device_filter(struct cdev *dev, struct knote *kn) in fuse_device_filter() 204 fuse_device_filt_detach(struct knote *kn) in fuse_device_filt_detach() 215 fuse_device_filt_read(struct knote *kn, long hint) in fuse_device_filt_read() 241 fuse_device_filt_write(struct knote *kn, long hint) in fuse_device_filt_write()
|
/freebsd/sys/x86/acpica/ |
H A D | acpi_apm.c | 61 static void apmreadfiltdetach(struct knote *kn); 62 static int apmreadfilt(struct knote *kn, long hint); 404 apmkqfilter(struct cdev *dev, struct knote *kn) in apmkqfilter() 418 apmreadfiltdetach(struct knote *kn) in apmreadfiltdetach() 429 apmreadfilt(struct knote *kn, long hint) in apmreadfilt()
|
/freebsd/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/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/sys/security/audit/ |
H A D | audit_pipe.c | 238 static int audit_pipe_kqread(struct knote *note, long hint); 239 static void audit_pipe_kqdetach(struct knote *note); 1004 audit_pipe_kqfilter(struct cdev *dev, struct knote *kn) in audit_pipe_kqfilter() 1028 audit_pipe_kqread(struct knote *kn, long hint) in audit_pipe_kqread() 1048 audit_pipe_kqdetach(struct knote *kn) in audit_pipe_kqdetach()
|
/freebsd/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/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); 1635 /* make sure the "knote" gets woken up */ in cuse_client_kqfilter_poll() 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 *k [all...] |
/freebsd/sys/geom/ |
H A D | geom_dev.c | 78 static void gdev_filter_detach(struct knote *kn); 79 static int gdev_filter_vnode(struct knote *kn, long hint); 874 gdev_filter_detach(struct knote *kn) in gdev_filter_detach() 884 gdev_filter_vnode(struct knote *kn, long hint) in gdev_filter_vnode() 892 g_dev_kqfilter(struct cdev *dev, struct knote *kn) in g_dev_kqfilter()
|
/freebsd/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/sys/dev/hid/ |
H A D | hidraw.c | 171 static int hidraw_kqread(struct knote *, long); 172 static void hidraw_kqdetach(struct knote *); 924 hidraw_kqfilter(struct cdev *dev, struct knote *kn) in hidraw_kqfilter() 949 hidraw_kqread(struct knote *kn, long hint) in hidraw_kqread() 968 hidraw_kqdetach(struct knote *kn) in hidraw_kqdetach()
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_target.c | 105 static void targreadfiltdetach(struct knote *kn); 106 static int targreadfilt(struct knote *kn, long hint); 319 targkqfilter(struct cdev *dev, struct knote *kn) in targkqfilter() 331 targreadfiltdetach(struct knote *kn) in targreadfiltdetach() 341 targreadfilt(struct knote *kn, long hint) in targreadfilt()
|
/freebsd/sys/dev/gpio/ |
H A D | gpioc.c | 129 static int gpioc_kqread(struct knote*, long); 130 static void gpioc_kqdetach(struct knote*); 988 gpioc_kqfilter(struct cdev *dev, struct knote *kn) in gpioc_kqfilter() 1017 gpioc_kqread(struct knote *kn, long hint) in gpioc_kqread() 1040 gpioc_kqdetach(struct knote *kn) in gpioc_kqdetach()
|