Lines Matching refs:prp
161 pid_allocate(proc_t *prp, pid_t pid, int flags) in pid_allocate() argument
214 pep->pe_proc = prp; in pid_allocate()
215 prp->p_pidp = pidp; in pid_allocate()
216 prp->p_lockp = &proc_lock[pid_getlockslot(pidp->pid_prslot)]; in pid_allocate()
272 pid_exit(proc_t *prp, struct task *tk) in pid_exit() argument
275 zone_t *zone = prp->p_zone; in pid_exit()
283 ASSERT(prp->p_pgidp != NULL || prp->p_stat == SIDL); in pid_exit()
284 if (prp->p_pgidp != NULL) in pid_exit()
285 pgexit(prp); in pid_exit()
287 sess_rele(prp->p_sessp, B_TRUE); in pid_exit()
289 pidp = prp->p_pidp; in pid_exit()
294 audit_pfree(prp); in pid_exit()
296 if (practive == prp) { in pid_exit()
297 practive = prp->p_next; in pid_exit()
300 if (prp->p_next) { in pid_exit()
301 prp->p_next->p_prev = prp->p_prev; in pid_exit()
303 if (prp->p_prev) { in pid_exit()
304 prp->p_prev->p_next = prp->p_next; in pid_exit()
309 mutex_destroy(&prp->p_crlock); in pid_exit()
310 kmem_cache_free(process_cache, prp); in pid_exit()
555 proc_t *prp; in pid_entry() local
563 prp = procdir[slot].pe_proc; in pid_entry()
564 if (prp != 0 && prp->p_stat == SIDL) in pid_entry()
566 return (prp); in pid_entry()
578 proc_t *prp; in signal() local
588 for (prp = pidp->pid_pglink; prp; prp = prp->p_pglink) { in signal()
589 mutex_enter(&prp->p_lock); in signal()
590 sigtoproc(prp, NULL, sig); in signal()
591 mutex_exit(&prp->p_lock); in signal()