Lines Matching refs:pr

277 	struct prison *pr;
285 for (pr = spr;; pr = pr->pr_parent) {
286 mtx_lock(&pr->pr_mtx);
287 lpr = (pr == &prison0)
289 : osd_jail_get(pr, linux_osd_jail_slot);
292 mtx_unlock(&pr->pr_mtx);
294 *prp = pr;
305 linux_alloc_prison(struct prison *pr, struct linux_prison **lprp)
311 LIN_SDT_PROBE2(mib, linux_alloc_prison, entry, pr, lprp);
315 lpr = linux_find_prison(pr, &ppr);
316 if (ppr == pr)
324 lpr = linux_find_prison(pr, &ppr);
325 if (ppr == pr) {
330 mtx_lock(&pr->pr_mtx);
331 error = osd_jail_set(pr, linux_osd_jail_slot, nlpr);
344 mtx_unlock(&pr->pr_mtx);
356 struct prison *pr = obj;
374 error = linux_alloc_prison(pr, NULL);
468 struct prison *pr = obj;
508 mtx_lock(&pr->pr_mtx);
509 osd_jail_del(pr, linux_osd_jail_slot);
510 mtx_unlock(&pr->pr_mtx);
517 error = linux_alloc_prison(pr, &lpr);
519 mtx_unlock(&pr->pr_mtx);
526 mtx_unlock(&pr->pr_mtx);
538 mtx_unlock(&pr->pr_mtx);
558 struct prison *pr = obj;
567 lpr = linux_find_prison(pr, &ppr);
568 i = (ppr == pr) ? JAIL_SYS_NEW : JAIL_SYS_INHERIT;
647 struct prison *pr;
662 TAILQ_FOREACH(pr, &allprison, pr_list)
663 (void)linux_alloc_prison(pr, NULL);
685 struct prison *pr;
690 lpr = linux_find_prison(td->td_ucred->cr_prison, &pr);
692 mtx_unlock(&pr->pr_mtx);
700 struct prison *pr;
705 lpr = linux_find_prison(td->td_ucred->cr_prison, &pr);
707 mtx_unlock(&pr->pr_mtx);
716 struct prison *pr;
721 lpr = linux_find_prison(td->td_ucred->cr_prison, &pr);
723 mtx_unlock(&pr->pr_mtx);
731 struct prison *pr;
737 lpr = linux_find_prison(td->td_ucred->cr_prison, &pr);
739 mtx_unlock(&pr->pr_mtx);
748 struct prison *pr;
754 lpr = linux_find_prison(td->td_ucred->cr_prison, &pr);
758 mtx_unlock(&pr->pr_mtx);
767 struct prison *pr;
773 lpr = linux_find_prison(td->td_ucred->cr_prison, &pr);
775 mtx_unlock(&pr->pr_mtx);
784 struct prison *pr;
789 lpr = linux_find_prison(td->td_ucred->cr_prison, &pr);
791 mtx_unlock(&pr->pr_mtx);