Home
last modified time | relevance | path

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

/xnu-8020.101.4/bsd/kern/
H A Dkern_resource.c128 static int donice(struct proc *curp, struct proc *chgp, int n);
536 donice(struct proc *curp, struct proc *chgp, int n) in donice() argument
543 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()