Home
last modified time | relevance | path

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

/xnu-10063.141.1/bsd/kern/
H A Dkern_resource.c129 static int donice(struct proc *curp, struct proc *chgp, int n);
581 donice(struct proc *curp, struct proc *chgp, int n) in donice() argument
588 my_cred = kauth_cred_proc_ref(chgp); in donice()
602 if (n < chgp->p_nice && suser(ucred, &curp->p_acflag)) { in donice()
607 error = mac_proc_check_sched(curp, chgp); in donice()
612 proc_lock(chgp); in donice()
613 chgp->p_nice = (char)n; in donice()
614 proc_unlock(chgp); in donice()
615 (void)resetpriority(chgp); in donice()