Home
last modified time | relevance | path

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

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