Home
last modified time | relevance | path

Searched refs:chgp (Results 1 – 1 of 1) sorted by relevance

/xnu-12377.1.9/bsd/kern/
H A Dkern_resource.c130 static int donice(struct proc *curp, struct proc *chgp, int n);
693 donice(struct proc *curp, struct proc *chgp, int n) in donice() argument
700 my_cred = kauth_cred_proc_ref(chgp); in donice()
714 if (n < chgp->p_nice && suser(ucred, &curp->p_acflag)) { in donice()
719 error = mac_proc_check_sched(curp, chgp); in donice()
724 proc_lock(chgp); in donice()
725 chgp->p_nice = (char)n; in donice()
726 proc_unlock(chgp); in donice()
727 (void)resetpriority(chgp); in donice()