Searched refs:chgp (Results 1 – 1 of 1) sorted by relevance
128 static int donice(struct proc *curp, struct proc *chgp, int n);535 donice(struct proc *curp, struct proc *chgp, int n) in donice() argument542 my_cred = kauth_cred_proc_ref(chgp); in donice()556 if (n < chgp->p_nice && suser(ucred, &curp->p_acflag)) { in donice()561 error = mac_proc_check_sched(curp, chgp); in donice()566 proc_lock(chgp); in donice()567 chgp->p_nice = (char)n; in donice()568 proc_unlock(chgp); in donice()569 (void)resetpriority(chgp); in donice()