/darwin-on-arm/xnu/bsd/kern/ |
H A D | vm_pressure.h | 36 int vm_knote_register(struct knote *); 37 void vm_knote_unregister(struct knote *);
|
H A D | vm_pressure.c | 89 int vm_knote_register(struct knote *kn) { 105 void vm_knote_unregister(struct knote *kn) { 106 struct knote *kn_temp; 133 struct knote *kn = NULL; 189 static struct knote * vm_find_knote_from_pid(pid_t pid) { 190 struct knote *kn = NULL; 209 struct knote *kn = NULL; 247 struct knote *kn; 267 struct knote *kn = NULL, *kn_max = NULL; 358 struct knote *k [all...] |
H A D | kern_event.c | 108 static int kqlock2knoteuse(struct kqueue *kq, struct knote *kn); 109 static int kqlock2knoteusewait(struct kqueue *kq, struct knote *kn); 110 static int kqlock2knotedrop(struct kqueue *kq, struct knote *kn); 111 static int knoteuse2kqlock(struct kqueue *kq, struct knote *kn); 123 static int kqueue_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 151 static int knote_process(struct knote *kn, kevent_callback_t callback, 153 static void knote_put(struct knote *kn); 154 static int knote_fdpattach(struct knote *kn, struct filedesc *fdp, struct proc *p); 155 static void knote_drop(struct knote *kn, struct proc *p); 156 static void knote_activate(struct knote *k 2399 knote(struct klist *list, long hint) function [all...] |
H A D | sys_pipe.c | 168 static int pipe_kqfilter(struct fileproc *fp, struct knote *kn, 183 static void filt_pipedetach(struct knote *kn); 184 static int filt_piperead(struct knote *kn, long hint); 185 static int filt_pipewrite(struct knote *kn, long hint); 1356 pipe_kqfilter(__unused struct fileproc *fp, struct knote *kn, __unused vfs_context_t ctx) 1406 filt_pipedetach(struct knote *kn) 1428 filt_piperead(struct knote *kn, long hint) 1468 filt_pipewrite(struct knote *kn, long hint)
|
H A D | tty_ptmx.c | 1525 int ptsd_kqfilter(dev_t, struct knote *); 1526 static void ptsd_kqops_detach(struct knote *); 1527 static int ptsd_kqops_event(struct knote *, long); 1548 ptsd_kqops_detach(struct knote *kn) 1573 ptsd_kqops_event(struct knote *kn, long hint) 1631 ptsd_kqfilter(dev_t dev, struct knote *kn) 1684 struct knote *kn, *tkn;
|
H A D | uipc_socket.c | 137 static void filt_sordetach(struct knote *kn); 138 static int filt_soread(struct knote *kn, long hint); 139 static void filt_sowdetach(struct knote *kn); 140 static int filt_sowrite(struct knote *kn, long hint); 141 static void filt_sockdetach(struct knote *kn); 142 static int filt_sockev(struct knote *kn, long hint); 248 extern int soo_kqfilter(struct fileproc *, struct knote *, struct proc *); 3868 soo_kqfilter(__unused struct fileproc *fp, struct knote *kn, 3922 filt_sordetach(struct knote *kn) 3935 filt_soread(struct knote *k [all...] |
H A D | kern_sig.c | 147 static int filt_sigattach(struct knote *kn); 148 static void filt_sigdetach(struct knote *kn); 149 static int filt_signal(struct knote *kn, long hint); 150 static void filt_signaltouch(struct knote *kn, struct kevent64_s *kev, 2779 * Attach a signal knote to the list of knotes for this process. 2781 * Signal knotes share the knote list with proc knotes. This 2782 * could be avoided by using a signal-specific knote list, but 2787 filt_sigattach(struct knote *kn) 2804 * remove the knote from the process list, if it hasn't already 2809 filt_sigdetach(struct knote *k [all...] |
H A D | sys_socket.c | 104 extern int soo_kqfilter(struct fileproc *, struct knote *, vfs_context_t ctx);
|
H A D | posix_sem.c | 178 static int psem_kqfilter (struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 1108 psem_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn,
|
H A D | posix_shm.c | 184 static int pshm_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 1238 pshm_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn,
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | event.h | 236 * Please note that EVFILT_PROC and EVFILT_SIGNAL share the same knote list 340 struct knote; 341 SLIST_HEAD(klist, knote); 353 TAILQ_HEAD(kqtailq, knote); /* a list of "queued" events */ 355 struct knote { struct 358 TAILQ_ENTRY(knote) kn_tqe; /* linkage for tail queue */ 360 SLIST_ENTRY(knote) kn_link; /* linkage for search list */ 361 SLIST_ENTRY(knote) kn_selnext; /* klist element chain */ 378 #define KN_DROPPING 0x08 /* knote is being dropped */ 379 #define KN_USEWAIT 0x10 /* wait for knote us [all...] |
H A D | file_internal.h | 80 struct knote; 160 int (*fo_kqfilter) (struct fileproc *fp, struct knote *kn, 189 int fo_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx);
|
H A D | vnode_if.h | 1456 struct knote *a_kn; 1462 extern errno_t VNOP_KQFILT_ADD(vnode_t , struct knote *, vfs_context_t);
|
/darwin-on-arm/xnu/osfmk/ipc/ |
H A D | ipc_pset.c | 320 static int filt_machportattach(struct knote *kn); 321 static void filt_machportdetach(struct knote *kn); 322 static int filt_machport(struct knote *kn, long hint); 323 static void filt_machporttouch(struct knote *kn, struct kevent64_s *kev, long type); 324 static unsigned filt_machportpeek(struct knote *kn); 335 struct knote *kn) 353 * Bind the portset wait queue directly to knote/kqueue. 355 * rather than having to call knote() from the Mach code on each 360 /* keep a reference for the knote */ 374 struct knote *k [all...] |
/darwin-on-arm/xnu/bsd/miscfs/specfs/ |
H A D | specdev.h | 138 int spec_kqfilter (vnode_t vp, struct knote *kn);
|
H A D | spec_vnops.c | 94 extern int bpfkqfilter(dev_t dev, struct knote *kn); 95 extern int ptsd_kqfilter(dev_t dev, struct knote *kn); 680 static int filt_specattach(struct knote *kn); 683 spec_kqfilter(vnode_t vp, struct knote *kn) 1959 static void filt_specdetach(struct knote *kn); 1960 static int filt_spec(struct knote *kn, long hint); 1961 static unsigned filt_specpeek(struct knote *kn); 1987 filt_specattach(struct knote *kn) 2021 filt_specdetach(struct knote *kn) 2042 filt_spec(struct knote *k [all...] |
/darwin-on-arm/xnu/security/ |
H A D | mac_pipe.c | 146 mac_pipe_check_kqfilter(kauth_cred_t cred, struct knote *kn,
|
H A D | mac_framework.h | 96 struct knote; 283 int mac_pipe_check_kqfilter(kauth_cred_t cred, struct knote *kn, 366 int mac_socket_check_kqfilter(kauth_cred_t cred, struct knote *kn, 480 kauth_cred_t file_cred, struct knote *kn, struct vnode *vp);
|
H A D | mac_socket.c | 272 mac_socket_check_kqfilter(kauth_cred_t cred, struct knote *kn,
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_vnops.c | 128 static int vn_kqfilt_add(struct fileproc *fp, struct knote *kn, 130 static void filt_vndetach(struct knote *kn); 131 static int filt_vnode(struct knote *kn, long hint); 1514 vn_kqfilt_add(struct fileproc *fp, struct knote *kn, vfs_context_t ctx) 1522 * Don't attach a knote to a dead vnode. 1582 filt_vndetach(struct knote *kn) 1668 * Determine whether this knote should be active 1677 filt_vnode(struct knote *kn, long hint) 1728 panic("Invalid knote filter on a vnode!\n");
|
H A D | vfs_fsevents.c | 1767 filt_fsevent_detach(struct knote *kn) 1779 * Determine whether this knote should be active 1788 filt_fsevent(struct knote *kn, long hint) 1842 fseventsf_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn, __unused vfs_context_t ctx)
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | sys_dep.c | 72 int _ATkqfilter(struct fileproc *, struct knote *, vfs_context_t);
|
H A D | sys_glue.c | 72 int _ATkqfilter(struct fileproc *, struct knote *, vfs_context_t); 681 __unused struct knote *kn,
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | bpf.c | 1831 int bpfkqfilter(dev_t dev, struct knote *kn); 1832 static void filt_bpfdetach(struct knote *); 1833 static int filt_bpfread(struct knote *, long); 1842 bpfkqfilter(dev_t dev, struct knote *kn) 1878 filt_bpfdetach(struct knote *kn) 1888 filt_bpfread(struct knote *kn, long hint)
|
/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit_pipe.c | 1071 audit_pipe_kqread(struct knote *kn, long hint) 1092 audit_pipe_kqdetach(struct knote *kn)
|