Lines Matching defs:Pr
186 struct ps_prochandle *Pr;
188 if ((Pr = Pgrab(pid, 0, &ret)) == NULL) {
199 if (Psetflags(Pr, PR_RLC) != 0 || Pcreate_agent(Pr) != 0) {
202 Prelease(Pr, 0);
205 return (Pr);
209 rele_proc(struct ps_prochandle *Pr)
211 if (Pr == NULL)
213 Pdestroy_agent(Pr);
214 Prelease(Pr, 0);
218 bind_lwp(struct ps_prochandle *Pr, id_t pid, id_t lwpid, processorid_t cpu)
222 if (pr_processor_bind(Pr, P_LWPID, lwpid, cpu, &old_cpu) < 0) {
240 struct ps_prochandle *Pr;
278 if ((bflag || uflag) && (Pr = grab_proc(pid)) == NULL) {
292 bind_lwp(Pr, pid, lwp->pr_lwpid, cpu);
297 rele_proc(Pr);