Lines Matching refs:proc
137 static int kevent_internal(struct proc *p, int iskev64, user_addr_t changelist,
140 static int kevent_copyin(user_addr_t *addrp, struct kevent64_s *kevp, struct proc *p, int iskev64);
141 static int kevent_copyout(struct kevent64_s *kevp, user_addr_t *addrp, struct proc *p, int iskev64);
148 void *data, int *countp, struct proc *p);
152 void *data, struct kqtailq *inprocessp, struct proc *p);
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);
473 struct proc *p;
505 kn->kn_ptr.p_proc = p; /* store the proc handle */
524 struct proc *p;
1055 kqueue_alloc(struct proc *p)
1104 struct proc *p = kq->kq_p;
1163 kqueue(struct proc *p, __unused struct kqueue_args *uap, int32_t *retval)
1195 kevent_copyin(user_addr_t *addrp, struct kevent64_s *kevp, struct proc *p, int iskev64)
1238 kevent_copyout(struct kevent64_s *kevp, user_addr_t *addrp, struct proc *p, int iskev64)
1294 struct proc *p = current_proc();
1319 kevent(struct proc *p, struct kevent_args *uap, int32_t *retval)
1334 kevent64(struct proc *p, struct kevent64_args *uap, int32_t *retval)
1349 kevent_internal(struct proc *p, int iskev64, user_addr_t changelist,
1522 kevent_register(struct kqueue *kq, struct kevent64_s *kev, __unused struct proc *ctxp)
1524 struct proc *p = kq->kq_p;
1745 struct proc *p)
1937 struct proc *p)
2056 struct proc *p)
2503 knote_fdclose(struct proc *p, int fd)
2514 panic("knote_fdclose: proc mismatch (kq->kq_p=%p != p=%p)", kq->kq_p, p);
2540 knote_fdpattach(struct knote *kn, struct filedesc *fdp, struct proc *p)
2592 knote_drop(struct knote *kn, __unused struct proc *ctxp)
2595 struct proc *p = kq->kq_p;
2723 static int kev_attach(struct socket *so, int proto, struct proc *p);
2725 static int kev_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp, struct proc *p);
2775 kev_attach(struct socket *so, __unused int proto, __unused struct proc *p)
2938 __unused struct proc *p)