Lines Matching refs:prp
161 pid_allocate(proc_t *prp, pid_t pid, int flags) in pid_allocate() argument
213 pep->pe_proc = prp; in pid_allocate()
214 prp->p_pidp = pidp; in pid_allocate()
215 prp->p_lockp = &proc_lock[pid_getlockslot(pidp->pid_prslot)]; in pid_allocate()
271 pid_exit(proc_t *prp, struct task *tk) in pid_exit() argument
274 zone_t *zone = prp->p_zone; in pid_exit()
282 ASSERT(prp->p_pgidp != NULL || prp->p_stat == SIDL); in pid_exit()
283 if (prp->p_pgidp != NULL) in pid_exit()
284 pgexit(prp); in pid_exit()
286 sess_rele(prp->p_sessp, B_TRUE); in pid_exit()
288 pidp = prp->p_pidp; in pid_exit()
293 audit_pfree(prp); in pid_exit()
295 if (practive == prp) { in pid_exit()
296 practive = prp->p_next; in pid_exit()
299 if (prp->p_next) { in pid_exit()
300 prp->p_next->p_prev = prp->p_prev; in pid_exit()
302 if (prp->p_prev) { in pid_exit()
303 prp->p_prev->p_next = prp->p_next; in pid_exit()
308 mutex_destroy(&prp->p_crlock); in pid_exit()
309 kmem_cache_free(process_cache, prp); in pid_exit()
554 proc_t *prp; in pid_entry() local
562 prp = procdir[slot].pe_proc; in pid_entry()
563 if (prp != 0 && prp->p_stat == SIDL) in pid_entry()
565 return (prp); in pid_entry()
577 proc_t *prp; in signal() local
587 for (prp = pidp->pid_pglink; prp; prp = prp->p_pglink) { in signal()
588 mutex_enter(&prp->p_lock); in signal()
589 sigtoproc(prp, NULL, sig); in signal()
590 mutex_exit(&prp->p_lock); in signal()