Lines Matching refs:pr
63 struct prison *pr;
73 pr = prison_find(jailid); /* Locks &pr->pr_mtx. */
75 if (pr == NULL) {
80 head = osd_jail_get(pr, zone_slot);
92 prison_hold_locked(pr);
93 mtx_unlock(&pr->pr_mtx);
96 mtx_lock(&pr->pr_mtx);
97 error = osd_jail_set(pr, zone_slot, head);
104 prison_free_locked(pr);
106 mtx_unlock(&pr->pr_mtx);
115 struct prison *pr;
122 pr = prison_find(jailid);
124 if (pr == NULL)
126 head = osd_jail_get(pr, zone_slot);
141 osd_jail_del(pr, zone_slot);
145 mtx_unlock(&pr->pr_mtx);
158 struct prison *pr;
169 pr = curthread->td_ucred->cr_prison;
170 mtx_lock(&pr->pr_mtx);
171 head = osd_jail_get(pr, zone_slot);
214 mtx_unlock(&pr->pr_mtx);