Searched refs:knote (Results 1 - 25 of 32) sorted by relevance

12

/darwin-on-arm/xnu/bsd/kern/
H A Dvm_pressure.h36 int vm_knote_register(struct knote *);
37 void vm_knote_unregister(struct knote *);
H A Dvm_pressure.c89 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 Dkern_event.c108 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 Dsys_pipe.c168 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 Dtty_ptmx.c1525 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 Duipc_socket.c137 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 Dkern_sig.c147 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 Dsys_socket.c104 extern int soo_kqfilter(struct fileproc *, struct knote *, vfs_context_t ctx);
H A Dposix_sem.c178 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 Dposix_shm.c184 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 Devent.h236 * 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 Dfile_internal.h80 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 Dvnode_if.h1456 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 Dipc_pset.c320 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 Dspecdev.h138 int spec_kqfilter (vnode_t vp, struct knote *kn);
H A Dspec_vnops.c94 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 Dmac_pipe.c146 mac_pipe_check_kqfilter(kauth_cred_t cred, struct knote *kn,
H A Dmac_framework.h96 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 Dmac_socket.c272 mac_socket_check_kqfilter(kauth_cred_t cred, struct knote *kn,
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c128 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 Dvfs_fsevents.c1767 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 Dsys_dep.c72 int _ATkqfilter(struct fileproc *, struct knote *, vfs_context_t);
H A Dsys_glue.c72 int _ATkqfilter(struct fileproc *, struct knote *, vfs_context_t);
681 __unused struct knote *kn,
/darwin-on-arm/xnu/bsd/net/
H A Dbpf.c1831 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 Daudit_pipe.c1071 audit_pipe_kqread(struct knote *kn, long hint)
1092 audit_pipe_kqdetach(struct knote *kn)

Completed in 226 milliseconds

12