/xnu-2422.115.4/bsd/kern/ |
H A D | vm_pressure.h | 37 int vm_knote_register(struct knote *); 38 void vm_knote_unregister(struct knote *);
|
H A D | kern_event.c | 113 static int kqlock2knoteuse(struct kqueue *kq, struct knote *kn); 114 static int kqlock2knoteusewait(struct kqueue *kq, struct knote *kn); 115 static int kqlock2knotedrop(struct kqueue *kq, struct knote *kn); 116 static int knoteuse2kqlock(struct kqueue *kq, struct knote *kn); 128 static int kqueue_kqfilter(struct fileproc *fp, struct knote *kn, 162 static int knote_process(struct knote *kn, kevent_callback_t callback, 164 static void knote_put(struct knote *kn); 165 static int knote_fdpattach(struct knote *kn, struct filedesc *fdp, 167 static void knote_drop(struct knote *kn, struct proc *p); 168 static void knote_activate(struct knote *k 2534 knote(struct klist *list, long hint) function [all...] |
H A D | vm_pressure.c | 95 int vm_knote_register(struct knote *kn) { 111 void vm_knote_unregister(struct knote *kn) { 112 struct knote *kn_temp; 139 struct knote *kn = NULL; 183 static struct knote *vm_find_knote_from_pid(pid_t pid, struct klist *list) { 184 struct knote *kn = NULL; 203 struct knote *kn; 236 struct knote *kn, *kn_tmp; 290 struct knote *kn = NULL, *kn_max = NULL; 386 struct knote * [all...] |
H A D | sys_pipe.c | 167 static int pipe_kqfilter(struct fileproc *fp, struct knote *kn, 184 static void filt_pipedetach(struct knote *kn); 185 static int filt_piperead(struct knote *kn, long hint); 186 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 | 1541 int ptsd_kqfilter(dev_t, struct knote *); 1542 static void ptsd_kqops_detach(struct knote *); 1543 static int ptsd_kqops_event(struct knote *, long); 1564 ptsd_kqops_detach(struct knote *kn) 1589 ptsd_kqops_event(struct knote *kn, long hint) 1647 ptsd_kqfilter(dev_t dev, struct knote *kn) 1700 struct knote *kn, *tkn;
|
H A D | kern_memorystatus.c | 97 static int filt_memorystatusattach(struct knote *kn); 98 static void filt_memorystatusdetach(struct knote *kn); 99 static int filt_memorystatus(struct knote *kn, long hint); 2583 extern struct knote * 2603 * kn_max - knote 2605 * knote_pressure_level - to check if the knote is registered for this notification level. 2615 is_knote_registered_modify_task_pressure_bits(struct knote*, int, task_t, vm_pressure_level_t, vm_pressure_level_t); 2618 is_knote_registered_modify_task_pressure_bits(struct knote *kn_max, int knote_pressure_level, task_t task, vm_pressure_level_t pressure_level_to_clear, vm_pressure_level_t pressure_level_to_set) 2639 struct knote *kn_max = NULL; 3321 filt_memorystatusattach(struct knote *k [all...] |
H A D | uipc_socket.c | 145 static void filt_sordetach(struct knote *kn); 146 static int filt_soread(struct knote *kn, long hint); 147 static void filt_sowdetach(struct knote *kn); 148 static int filt_sowrite(struct knote *kn, long hint); 149 static void filt_sockdetach(struct knote *kn); 150 static int filt_sockev(struct knote *kn, long hint); 4320 soo_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx) 4380 filt_sordetach(struct knote *kn) 4393 filt_soread(struct knote *kn, long hint) 4476 filt_sowdetach(struct knote *k [all...] |
H A D | kern_sig.c | 149 static int filt_sigattach(struct knote *kn); 150 static void filt_sigdetach(struct knote *kn); 151 static int filt_signal(struct knote *kn, long hint); 152 static void filt_signaltouch(struct knote *kn, struct kevent64_s *kev, 2778 * Attach a signal knote to the list of knotes for this process. 2780 * Signal knotes share the knote list with proc knotes. This 2781 * could be avoided by using a signal-specific knote list, but 2786 filt_sigattach(struct knote *kn) 2803 * remove the knote from the process list, if it hasn't already 2808 filt_sigdetach(struct knote *k [all...] |
H A D | posix_sem.c | 179 static int psem_kqfilter (struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 1116 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); 1251 pshm_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn,
|
/xnu-2422.115.4/bsd/sys/ |
H A D | event.h | 237 * Please note that EVFILT_PROC and EVFILT_SIGNAL share the same knote list 388 struct knote; 389 SLIST_HEAD(klist, knote); 402 TAILQ_HEAD(kqtailq, knote); /* a list of "queued" events */ 404 struct knote { struct 407 TAILQ_ENTRY(knote) kn_tqe; /* linkage for tail queue */ 409 SLIST_ENTRY(knote) kn_link; /* linkage for search list */ 410 SLIST_ENTRY(knote) kn_selnext; /* klist element chain */ 427 #define KN_DROPPING 0x08 /* knote is being dropped */ 428 #define KN_USEWAIT 0x10 /* wait for knote us [all...] |
H A D | file_internal.h | 81 struct knote; 179 int (*fo_kqfilter) (struct fileproc *fp, struct knote *kn, 209 int fo_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx);
|
H A D | kern_memorystatus.h | 243 int memorystatus_knote_register(struct knote *kn); 244 void memorystatus_knote_unregister(struct knote *kn);
|
H A D | vnode_if.h | 1458 struct knote *a_kn; 1464 extern errno_t VNOP_KQFILT_ADD(vnode_t , struct knote *, vfs_context_t);
|
/xnu-2422.115.4/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...] |
/xnu-2422.115.4/bsd/miscfs/specfs/ |
H A D | specdev.h | 138 int spec_kqfilter (vnode_t vp, struct knote *kn);
|
H A D | spec_vnops.c | 95 extern int bpfkqfilter(dev_t dev, struct knote *kn); 96 extern int ptsd_kqfilter(dev_t dev, struct knote *kn); 717 static int filt_specattach(struct knote *kn); 720 spec_kqfilter(vnode_t vp, struct knote *kn) 2251 static void filt_specdetach(struct knote *kn); 2252 static int filt_spec(struct knote *kn, long hint); 2253 static unsigned filt_specpeek(struct knote *kn); 2279 filt_specattach(struct knote *kn) 2313 filt_specdetach(struct knote *kn) 2334 filt_spec(struct knote *k [all...] |
/xnu-2422.115.4/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 | 98 struct knote; 288 int mac_pipe_check_kqfilter(kauth_cred_t cred, struct knote *kn, 373 int mac_socket_check_kqfilter(kauth_cred_t cred, struct knote *kn, 488 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,
|
H A D | mac_policy.h | 2008 @param kn Object knote 2013 receive the knote on the passed pipe. 2020 struct knote *kn, 3532 @param kn Object knote 3537 receive the knote on the passed socket. 3544 struct knote *kn, 5126 @param kn Object knote 5131 receive the knote on the passed vnode. 5139 struct knote *kn,
|
/xnu-2422.115.4/bsd/vfs/ |
H A D | vfs_vnops.c | 129 static int vn_kqfilt_add(struct fileproc *fp, struct knote *kn, 131 static void filt_vndetach(struct knote *kn); 132 static int filt_vnode(struct knote *kn, long hint); 1526 vn_kqfilt_add(struct fileproc *fp, struct knote *kn, vfs_context_t ctx) 1534 * Don't attach a knote to a dead vnode. 1594 filt_vndetach(struct knote *kn) 1686 * Determine whether this knote should be active 1695 filt_vnode(struct knote *kn, long hint) 1746 panic("Invalid knote filter on a vnode!\n");
|
H A D | vfs_fsevents.c | 1835 filt_fsevent_detach(struct knote *kn) 1847 * Determine whether this knote should be active 1856 filt_fsevent(struct knote *kn, long hint) 1910 fseventsf_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn, __unused vfs_context_t ctx)
|
/xnu-2422.115.4/bsd/net/ |
H A D | bpf.c | 1939 int bpfkqfilter(dev_t dev, struct knote *kn); 1940 static void filt_bpfdetach(struct knote *); 1941 static int filt_bpfread(struct knote *, long); 1950 bpfkqfilter(dev_t dev, struct knote *kn) 1986 filt_bpfdetach(struct knote *kn) 1996 filt_bpfread(struct knote *kn, long hint)
|
/xnu-2422.115.4/bsd/security/audit/ |
H A D | audit_pipe.c | 1072 audit_pipe_kqread(struct knote *kn, long hint) 1093 audit_pipe_kqdetach(struct knote *kn)
|