Lines Matching defs:proc
70 #include <sys/proc.h>
133 static int getmaxfd(struct proc *p);
191 /* A mutex to protect the association between a proc and filedesc. */
347 struct proc *p = td->td_proc;
489 struct proc *p;
805 getmaxfd(struct proc *p)
825 struct proc *p;
961 struct proc *p = (sigio)->sio_proc;
976 * the proc or pgrp struct for the list manipulation.
981 struct proc *p;
993 * to a single proc or pgrp.
1017 ("Pgrp sigio in proc sigio list"));
1019 ("Bogus proc in sigio list"));
1042 struct proc *proc;
1062 proc = pfind(pgid);
1063 if (proc == NULL) {
1076 PROC_UNLOCK(proc);
1077 if (proc->p_session != curthread->td_proc->p_session) {
1104 proc = NULL;
1108 PROC_LOCK(proc);
1114 if ((proc->p_flag & P_WEXIT) != 0) {
1115 PROC_UNLOCK(proc);
1119 SLIST_INSERT_HEAD(&proc->p_sigiolst, sigio, sio_pgsigio);
1120 sigio->sio_proc = proc;
1121 PROC_UNLOCK(proc);
1619 struct proc *p = td->td_proc;
1680 struct proc *p = td->td_proc;
1709 struct proc *p = td->td_proc;
1875 fdhold(struct proc *p)
1929 struct proc *p = td->td_proc;
2869 struct proc *p;
2928 filedesc_to_leader_alloc(struct filedesc_to_leader *old, struct filedesc *fdp, struct proc *leader)
2961 struct proc *p;
3093 struct proc *p;
3413 * Takes a locked proc as argument, and returns with the proc unlocked.
3416 kern_proc_filedesc_out(struct proc *p, struct sbuf *sb, ssize_t maxlen)
3587 struct proc *p;
3846 static struct proc *
3850 struct proc *p;
3870 struct proc *p;
3899 struct proc *p;