/darwin-on-arm/xnu/bsd/kern/ |
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 *kn, in 321 kqlock2knoteuse(struct kqueue *kq, struct knote *kn) argument 342 kqlock2knoteusewait(struct kqueue *kq, struct knote *kn) argument 368 knoteuse2kqlock(struct kqueue *kq, struct knote *kn) argument 398 kqlock2knotedrop(struct kqueue *kq, struct knote *kn) argument 421 knote_put(struct knote *kn) argument 436 filt_fileattach(struct knote *kn) argument 451 filt_kqdetach(struct knote *kn) argument 462 filt_kqueue(struct knote *kn, __unused long hint) argument 471 filt_procattach(struct knote *kn) argument 522 filt_procdetach(struct knote *kn) argument 538 filt_proc(struct knote *kn, long hint) argument 608 filt_vmattach(struct knote *kn) argument 620 filt_vmdetach(struct knote *kn) argument 626 filt_vm(struct knote *kn, long hint) argument 660 filt_timervalidate(struct knote *kn) argument 723 filt_timerupdate(struct knote *kn) argument 758 struct knote *kn = knx; local 784 filt_timercancel(struct knote *kn) argument 812 filt_timerattach(struct knote *kn) argument 853 filt_timerdetach(struct knote *kn) argument 870 filt_timer(struct knote *kn, long hint) argument 914 filt_timertouch(struct knote *kn, struct kevent64_s *kev, long type) argument 977 filt_userattach(struct knote *kn) argument 990 filt_userdetach(__unused struct knote *kn) argument 996 filt_user(struct knote *kn, __unused long hint) argument 1002 filt_usertouch(struct knote *kn, struct kevent64_s *kev, long type) argument 1048 filt_badattach(__unused struct knote *kn) argument 1106 struct knote *kn; local 1528 struct knote *kn = NULL; local 1741 knote_process(struct knote *kn, kevent_callback_t callback, void *data, struct kqtailq *inprocessp, struct proc *p) argument 1940 struct knote *kn; local 2177 struct knote *kn; local 2276 kqueue_kqfilter(__unused struct fileproc *fp, struct knote *kn, __unused vfs_context_t ctx) argument 2401 struct knote *kn; local 2427 knote_attach(struct klist *list, struct knote *kn) argument 2439 knote_detach(struct klist *list, struct knote *kn) argument 2456 knote_link_wait_queue(struct knote *kn, struct wait_queue *wq, wait_queue_link_t wql) argument 2480 knote_unlink_wait_queue(struct knote *kn, struct wait_queue *wq, wait_queue_link_t *wqlp) argument 2507 struct knote *kn; local 2540 knote_fdpattach(struct knote *kn, struct filedesc *fdp, struct proc *p) argument 2592 knote_drop(struct knote *kn, __unused struct proc *ctxp) argument 2624 knote_activate(struct knote *kn, int propagate) argument 2639 knote_deactivate(struct knote *kn) argument 2647 knote_enqueue(struct knote *kn) argument 2662 knote_dequeue(struct knote *kn) argument 2706 knote_free(struct knote *kn) argument 3010 knote_markstayqueued(struct knote *kn) argument [all...] |
H A D | vm_pressure.c | 89 int vm_knote_register(struct knote *kn) { argument 94 if ((kn->kn_sfflags) & (NOTE_VM_PRESSURE)) { 95 KNOTE_ATTACH(&vm_pressure_klist, kn); 105 void vm_knote_unregister(struct knote *kn) { argument 110 VM_PRESSURE_DEBUG(0, "[vm_pressure] process %d cancelling pressure notification\n", kn->kn_kq->kq_p->p_pid); 113 if (kn_temp == kn) { 114 KNOTE_DETACH(&vm_pressure_klist, kn); 121 if (kn_temp == kn) { 122 KNOTE_DETACH(&vm_pressure_klist_dormant, kn); 133 struct knote *kn local 190 struct knote *kn = NULL; local 209 struct knote *kn = NULL; local 247 struct knote *kn; local 267 struct knote *kn = NULL, *kn_max = NULL; local 358 struct knote *kn; local [all...] |
H A D | tty_ptmx.c | 1548 ptsd_kqops_detach(struct knote *kn) argument 1552 dev_t dev, lockdev = (dev_t)kn->kn_hookid; 1556 if ((dev = (dev_t)kn->kn_hookid) != 0) { 1560 if (kn->kn_filter == EVFILT_READ) 1561 KNOTE_DETACH(&tp->t_rsel.si_note, kn); 1563 KNOTE_DETACH(&tp->t_wsel.si_note, kn); 1565 kn->kn_hookid = 0; 1573 ptsd_kqops_event(struct knote *kn, long hint) argument 1577 dev_t dev = (dev_t)kn->kn_hookid; 1583 if (kn 1631 ptsd_kqfilter(dev_t dev, struct knote *kn) argument 1684 struct knote *kn, *tkn; local [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) argument 1360 cpipe = (struct pipe *)kn->kn_fp->f_data; 1369 if (mac_pipe_check_kqfilter(vfs_context_ucred(ctx), kn, cpipe) != 0) { 1375 switch (kn->kn_filter) { 1377 kn->kn_fop = &pipe_rfiltops; 1381 kn 1406 filt_pipedetach(struct knote *kn) argument 1428 filt_piperead(struct knote *kn, long hint) argument 1468 filt_pipewrite(struct knote *kn, long hint) argument [all...] |
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); 3868 soo_kqfilter(__unused struct fileproc *fp, struct knote *kn, argument 3871 struct socket *so = (struct socket *)kn->kn_fp->f_fglob->fg_data; 3877 if (mac_socket_check_kqfilter(proc_ucred(p), kn, so) != 0) { 3883 switch (kn 3922 filt_sordetach(struct knote *kn) argument 3935 filt_soread(struct knote *kn, long hint) argument 4018 filt_sowdetach(struct knote *kn) argument 4044 filt_sowrite(struct knote *kn, long hint) argument 4092 filt_sockdetach(struct knote *kn) argument 4104 filt_sockev(struct knote *kn, long hint) argument [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, 2787 filt_sigattach(struct knote *kn) argument 2793 kn->kn_ptr.p_proc = p; 2794 kn->kn_flags |= EV_CLEAR; /* automatically set */ 2796 KNOTE_ATTACH(&p->p_klist, kn); 2809 filt_sigdetach(struct knote *kn) argument 2811 proc_t p = kn 2829 filt_signal(struct knote *kn, long hint) argument 2845 filt_signaltouch(struct knote *kn, struct kevent64_s *kev, long type) argument [all...] |
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, argument
|
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, argument
|
H A D | kern_proc.c | 2689 struct knote *kn = NULL; local 2695 while ((kn = SLIST_FIRST(&p->p_klist))) { 2696 kn->kn_ptr.p_proc = PROC_NULL; 2697 KNOTE_DETACH(&p->p_klist, kn);
|
/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) 337 mach_port_name_t name = (mach_port_name_t)kn->kn_kevent.ident; 358 result = knote_link_wait_queue(kn, &pset->ips_messages.imq_wait_queue, wql); 361 kn->kn_ptr.p_pset = pset; 374 struct knote *kn) 334 filt_machportattach( struct knote *kn) argument 373 filt_machportdetach( struct knote *kn) argument 393 filt_machport( struct knote *kn, __unused long hint) argument 504 filt_machporttouch(struct knote *kn, struct kevent64_s *kev, long type) argument 542 filt_machportpeek(struct knote *kn) argument [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | event.h | 399 int (*f_attach)(struct knote *kn); 400 void (*f_detach)(struct knote *kn); 401 int (*f_event)(struct knote *kn, long hint); 403 void (*f_touch)(struct knote *kn, struct kevent64_s *kev, long type); 405 unsigned (*f_peek)(struct knote *kn); 416 #define KNOTE_ATTACH(list, kn) knote_attach(list, kn) 417 #define KNOTE_DETACH(list, kn) knote_detach(list, kn) 421 extern int knote_attach(struct klist *list, struct knote *kn); [all...] |
H A D | file_internal.h | 160 int (*fo_kqfilter) (struct fileproc *fp, struct knote *kn, 189 int fo_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx);
|
/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) argument 1525 switch (kn->kn_filter) { 1536 (error = spec_kqfilter(vp, kn)) == 0) { 1557 error = mac_vnode_check_kqfilter(ctx, fp->f_fglob->fg_cred, kn, vp); 1564 kn->kn_hook = (void*)vp; 1565 kn->kn_hookid = vnode_vid(vp); 1566 kn 1582 filt_vndetach(struct knote *kn) argument 1677 filt_vnode(struct knote *kn, long hint) argument [all...] |
H A D | vfs_fsevents.c | 1767 filt_fsevent_detach(struct knote *kn) argument 1769 fsevent_handle *fseh = (struct fsevent_handle *)kn->kn_hook; 1773 KNOTE_DETACH(&fseh->knotes, kn); 1788 filt_fsevent(struct knote *kn, long hint) argument 1790 fsevent_handle *fseh = (struct fsevent_handle *)kn->kn_hook; 1795 kn->kn_flags |= (EV_EOF | EV_ONESHOT); 1807 switch(kn->kn_filter) { 1809 kn->kn_data = amt; 1811 if (kn->kn_data != 0) { 1817 if (kn 1842 fseventsf_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn, __unused vfs_context_t ctx) argument [all...] |
H A D | vfs_subr.c | 3483 static int filt_fsattach(struct knote *kn); 3484 static void filt_fsdetach(struct knote *kn); 3485 static int filt_fsevent(struct knote *kn, long hint); 3493 filt_fsattach(struct knote *kn) argument 3497 kn->kn_flags |= EV_CLEAR; 3498 KNOTE_ATTACH(&fs_klist, kn); 3504 filt_fsdetach(struct knote *kn) argument 3507 KNOTE_DETACH(&fs_klist, kn); 3512 filt_fsevent(struct knote *kn, long hint) argument 3516 * Other filters would do nothing if kn [all...] |
/darwin-on-arm/xnu/bsd/miscfs/specfs/ |
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) argument 696 err = filt_specattach(kn); 699 err = bpfkqfilter(dev, 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) argument 2021 filt_specdetach(struct knote *kn) argument 2042 filt_spec(struct knote *kn, long hint) argument 2097 filt_specpeek(struct knote *kn) argument [all...] |
H A D | specdev.h | 138 int spec_kqfilter (vnode_t vp, struct knote *kn);
|
/darwin-on-arm/xnu/security/ |
H A D | mac_pipe.c | 146 mac_pipe_check_kqfilter(kauth_cred_t cred, struct knote *kn, argument 154 MAC_CHECK(pipe_check_kqfilter, cred, kn, cpipe, cpipe->pipe_label);
|
H A D | mac_socket.c | 272 mac_socket_check_kqfilter(kauth_cred_t cred, struct knote *kn, argument 280 MAC_CHECK(socket_check_kqfilter, cred, kn,
|
H A D | mac_framework.h | 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_policy.h | 1986 @param kn Object knote 1998 struct knote *kn, 3480 @param kn Object knote 3492 struct knote *kn, 5050 @param kn Object knote 5063 struct knote *kn,
|
H A D | mac_vfs.c | 753 struct knote *kn, struct vnode *vp) 763 MAC_CHECK(vnode_check_kqfilter, cred, file_cred, kn, vp, 752 mac_vnode_check_kqfilter(vfs_context_t ctx, kauth_cred_t file_cred, struct knote *kn, struct vnode *vp) argument
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | bpf.c | 1831 int bpfkqfilter(dev_t dev, struct knote *kn); 1842 bpfkqfilter(dev_t dev, struct knote *kn) argument 1853 if (kn->kn_filter != EVFILT_READ) { 1870 kn->kn_hook = d; 1871 kn->kn_fop = &bpfread_filtops; 1872 KNOTE_ATTACH(&d->bd_sel.si_note, kn); 1878 filt_bpfdetach(struct knote *kn) argument 1880 struct bpf_d *d = (struct bpf_d *)kn->kn_hook; 1883 KNOTE_DETACH(&d->bd_sel.si_note, kn); 1888 filt_bpfread(struct knote *kn, lon argument [all...] |
/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit_pipe.c | 1071 audit_pipe_kqread(struct knote *kn, long hint) argument 1075 ap = (struct audit_pipe *)kn->kn_hook; 1080 kn->kn_data = ap->ap_qbyteslen - ap->ap_qoffset; 1083 kn->kn_data = 0; 1092 audit_pipe_kqdetach(struct knote *kn) argument 1096 ap = (struct audit_pipe *)kn->kn_hook; 1100 knlist_remove(&ap->ap_selinfo.si_note, kn, 1);
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | sys_glue.c | 681 __unused struct knote *kn, 679 _ATkqfilter( __unused struct fileproc *fp, __unused struct knote *kn, __unused vfs_context_t ctx) argument
|