Home
last modified time | relevance | path

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

/dragonfly/sys/kern/
HDkern_resource.c59 static int donice (struct proc *chgp, int n);
60 static int doionice (struct proc *chgp, int n);
292 donice(struct proc *chgp, int n) in donice() argument
298 cr->cr_uid != chgp->p_ucred->cr_uid && in donice()
299 cr->cr_ruid != chgp->p_ucred->cr_uid) in donice()
305 if (n < chgp->p_nice && caps_priv_check(cr, SYSCAP_NOSCHED)) in donice()
307 chgp->p_nice = n; in donice()
308 FOREACH_LWP_IN_PROC(lp, chgp) { in donice()
310 chgp->p_usched->resetpriority(lp); in donice()
531 doionice(struct proc *chgp, int n) in doionice() argument
[all …]