Lines Matching refs:rpr
3128 struct prison *killpr, *rpr, *ppr, *tpr; in prison_deref() local
3249 TAILQ_FOREACH_SAFE(rpr, &freeprison, pr_list, tpr) { in prison_deref()
3251 if (rpr->pr_flags & PR_VNET) in prison_deref()
3252 vnet_destroy(rpr->pr_vnet); in prison_deref()
3254 if (rpr->pr_root != NULL) in prison_deref()
3255 vrele(rpr->pr_root); in prison_deref()
3256 mtx_destroy(&rpr->pr_mtx); in prison_deref()
3258 prison_ip_free(rpr->pr_addrs[PR_INET]); in prison_deref()
3261 prison_ip_free(rpr->pr_addrs[PR_INET6]); in prison_deref()
3263 if (rpr->pr_cpuset != NULL) in prison_deref()
3264 cpuset_rel(rpr->pr_cpuset); in prison_deref()
3265 osd_jail_exit(rpr); in prison_deref()
3268 prison_racct_detach(rpr); in prison_deref()
3270 TAILQ_REMOVE(&freeprison, rpr, pr_list); in prison_deref()
3271 free(rpr, M_PRISON); in prison_deref()
3282 struct prison *cpr, *ppr, *rpr; in prison_deref_kill() local
3297 rpr = NULL; in prison_deref_kill()
3330 if (rpr != NULL) in prison_deref_kill()
3331 LIST_REMOVE(rpr, pr_sibling); in prison_deref_kill()
3332 rpr = cpr; in prison_deref_kill()
3333 rpr->pr_state = PRISON_STATE_INVALID; in prison_deref_kill()
3334 TAILQ_REMOVE(&allprison, rpr, pr_list); in prison_deref_kill()
3335 TAILQ_INSERT_TAIL(freeprison, rpr, pr_list); in prison_deref_kill()
3339 ppr = rpr->pr_parent; in prison_deref_kill()
3347 if (rpr != NULL) in prison_deref_kill()
3348 LIST_REMOVE(rpr, pr_sibling); in prison_deref_kill()