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