Home
last modified time | relevance | path

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

/kernel/
Dsys.c183 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument
191 if (niceval < task_nice(p) && !can_nice(p, niceval)) { in set_one_prio()
195 no_nice = security_task_setnice(p, niceval); in set_one_prio()
202 set_user_nice(p, niceval); in set_one_prio()
207 SYSCALL_DEFINE3(setpriority, int, which, int, who, int, niceval) in SYSCALL_DEFINE3() argument
221 if (niceval < MIN_NICE) in SYSCALL_DEFINE3()
222 niceval = MIN_NICE; in SYSCALL_DEFINE3()
223 if (niceval > MAX_NICE) in SYSCALL_DEFINE3()
224 niceval = MAX_NICE; in SYSCALL_DEFINE3()
235 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
[all …]