Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_racct.c
| Show First 20 Lines • Show All 943 Lines • ▼ Show 20 Lines | #ifdef RCTL | ||||
| rctl_racct_release(p->p_racct); | rctl_racct_release(p->p_racct); | ||||
| #endif | #endif | ||||
| racct_destroy_locked(&p->p_racct); | racct_destroy_locked(&p->p_racct); | ||||
| RACCT_UNLOCK(); | RACCT_UNLOCK(); | ||||
| PROC_UNLOCK(p); | PROC_UNLOCK(p); | ||||
| } | } | ||||
| /* | /* | ||||
| * Called after credentials change, to move resource utilisation | * Called to signal credentials change, to move resource utilisation | ||||
| * between raccts. | * between raccts. Must be called with the proc lock held, in the same span as | ||||
| * the credentials change itself (i.e., without the proc lock being unlocked | |||||
| * between the two), but the order does not matter. | |||||
| */ | */ | ||||
| void | void | ||||
| racct_proc_ucred_changed(struct proc *p, struct ucred *oldcred, | racct_proc_ucred_changed(struct proc *p, struct ucred *oldcred, | ||||
| struct ucred *newcred) | struct ucred *newcred) | ||||
| { | { | ||||
| struct uidinfo *olduip, *newuip; | struct uidinfo *olduip, *newuip; | ||||
| struct loginclass *oldlc, *newlc; | struct loginclass *oldlc, *newlc; | ||||
| struct prison *oldpr, *newpr, *pr; | struct prison *oldpr, *newpr, *pr; | ||||
| ▲ Show 20 Lines • Show All 377 Lines • Show Last 20 Lines | |||||