Lines Matching defs:pr1
161 static char *prison_path(struct prison *pr1, struct prison *pr2);
3590 prison_ischild(struct prison *pr1, struct prison *pr2)
3594 if (pr1 == pr2)
4223 * Return the part of pr2's name that is relative to pr1, or the whole name
4228 prison_name(struct prison *pr1, struct prison *pr2)
4233 if (pr1 == pr2)
4236 if (prison_ischild(pr1, pr2)) {
4238 * pr1 isn't locked (and allprison_lock may not be either)
4242 for (; pr1 != &prison0; pr1 = pr1->pr_parent)
4249 * Return the part of pr2's path that is relative to pr1, or the whole path
4253 prison_path(struct prison *pr1, struct prison *pr2)
4258 path1 = pr1->pr_path;