Searched refs:chgp (Results 1 – 1 of 1) sorted by relevance
129 static int donice(struct proc *curp, struct proc *chgp, int n);625 donice(struct proc *curp, struct proc *chgp, int n) in donice() argument632 my_cred = kauth_cred_proc_ref(chgp); in donice()646 if (n < chgp->p_nice && suser(ucred, &curp->p_acflag)) { in donice()651 error = mac_proc_check_sched(curp, chgp); in donice()656 proc_lock(chgp); in donice()657 chgp->p_nice = (char)n; in donice()658 proc_unlock(chgp); in donice()659 (void)resetpriority(chgp); in donice()