Home
last modified time | relevance | path

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

/kernel/
Dsys.c155 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument
163 if (niceval < task_nice(p) && !can_nice(p, niceval)) { in set_one_prio()
167 no_nice = security_task_setnice(p, niceval); in set_one_prio()
174 set_user_nice(p, niceval); in set_one_prio()
179 SYSCALL_DEFINE3(setpriority, int, which, int, who, int, niceval) in SYSCALL_DEFINE3() argument
193 if (niceval < MIN_NICE) in SYSCALL_DEFINE3()
194 niceval = MIN_NICE; in SYSCALL_DEFINE3()
195 if (niceval > MAX_NICE) in SYSCALL_DEFINE3()
196 niceval = MAX_NICE; in SYSCALL_DEFINE3()
207 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
[all …]