Lines Matching refs:proc
96 #include <sys/proc.h>
144 int rd_uio(struct proc *p, int fdes, uio_t uio, user_ssize_t *retval);
145 int wr_uio(struct proc *p, int fdes, uio_t uio, user_ssize_t *retval);
155 __private_extern__ int preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_vnode);
156 __private_extern__ void donefileread(struct proc *p, struct fileproc *fp_ret, int fd);
196 read(struct proc *p, struct read_args *uap, user_ssize_t *retval)
203 read_nocancel(struct proc *p, struct read_nocancel_args *uap, user_ssize_t *retval)
235 pread(struct proc *p, struct pread_args *uap, user_ssize_t *retval)
242 pread_nocancel(struct proc *p, struct pread_nocancel_args *uap, user_ssize_t *retval)
272 donefileread(struct proc *p, struct fileproc *fp, int fd)
291 preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_pread)
393 readv(struct proc *p, struct readv_args *uap, user_ssize_t *retval)
400 readv_nocancel(struct proc *p, struct readv_nocancel_args *uap, user_ssize_t *retval)
451 write(struct proc *p, struct write_args *uap, user_ssize_t *retval)
459 write_nocancel(struct proc *p, struct write_nocancel_args *uap, user_ssize_t *retval)
498 pwrite(struct proc *p, struct pwrite_args *uap, user_ssize_t *retval)
505 pwrite_nocancel(struct proc *p, struct pwrite_nocancel_args *uap, user_ssize_t *retval)
607 writev(struct proc *p, struct writev_args *uap, user_ssize_t *retval)
614 writev_nocancel(struct proc *p, struct writev_nocancel_args *uap, user_ssize_t *retval)
660 wr_uio(struct proc *p, int fdes, uio_t uio, user_ssize_t *retval)
700 rd_uio(struct proc *p, int fdes, uio_t uio, user_ssize_t *retval)
742 ioctl(struct proc *p, struct ioctl_args *uap, __unused int32_t *retval)
912 struct proc *p1 = proc_find(tmp);
958 static int selscan(struct proc *p, struct _select * sel,
960 static int selcount(struct proc *p, u_int32_t *ibits, int nfd, int *count);
961 static int seldrop_locked(struct proc *p, u_int32_t *ibits, int nfd, int lim, int *need_wakeup, int fromselcount);
962 static int seldrop(struct proc *p, u_int32_t *ibits, int nfd);
973 select(struct proc *p, struct select_args *uap, int32_t *retval)
980 select_nocancel(struct proc *p, struct select_nocancel_args *uap, int32_t *retval)
1154 struct proc *p;
1312 selscan(struct proc *p, struct _select *sel, int nfd, int32_t *retval,
1413 poll(struct proc *p, struct poll_args *uap, int32_t *retval)
1421 poll_nocancel(struct proc *p, struct poll_nocancel_args *uap, int32_t *retval)
1620 seltrue(__unused dev_t dev, __unused int flag, __unused struct proc *p)
1651 selcount(struct proc *p, u_int32_t *ibits, int nfd, int *countp)
1741 seldrop_locked(struct proc *p, u_int32_t *ibits, int nfd, int lim, int *need_wakeup, int fromselcount)
1821 seldrop(struct proc *p, u_int32_t *ibits, int nfd)
1839 selrecord(__unused struct proc *selector, struct selinfo *sip, void * p_wql)
1989 * the proc if we do queue this event to it...
1990 * entered with proc lock held... we drop it before
2085 * inserted this event into the proc queue...
2089 * of the proc lock, which it will hold
2254 * inserted this event into the proc queue...
2259 * of the proc lock, which it will hold
2275 * will enque it back to our proc where we can retrieve it
2360 * only allow one watch per file per proc
2406 * grabs the next waiting event for this proc and returns
2478 * don't want to hold the proc lock across a copyout because
2675 * so do a quick check for EV_QUEUED w/o holding the proc lock
2686 * while the event is off the proc queue and
2710 waitevent_close(struct proc *p, struct fileproc *fp)
2786 gethostuuid(struct proc *p, struct gethostuuid_args *uap, __unused int32_t *retval)
2833 ledger(struct proc *p, struct ledger_args *args, __unused int32_t *retval)
2840 proc_t proc;
2842 /* Finish copying in the necessary args before taking the proc lock */
2861 proc = proc_find(pid);
2862 if (proc == NULL)
2866 error = mac_proc_check_ledger(p, proc, args->cmd);
2868 proc_rele(proc);
2873 task = proc->task;
2882 proc_rele(proc);
2890 proc_rele(proc);
2902 proc_rele(proc);