Searched refs:niceval (Results 1 – 1 of 1) sorted by relevance
/kernel/ |
D | sys.c | 189 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument 197 if (niceval < task_nice(p) && !can_nice(p, niceval)) { in set_one_prio() 201 no_nice = security_task_setnice(p, niceval); in set_one_prio() 208 set_user_nice(p, niceval); in set_one_prio() 213 SYSCALL_DEFINE3(setpriority, int, which, int, who, int, niceval) in SYSCALL_DEFINE3() argument 227 if (niceval < MIN_NICE) in SYSCALL_DEFINE3() 228 niceval = MIN_NICE; in SYSCALL_DEFINE3() 229 if (niceval > MAX_NICE) in SYSCALL_DEFINE3() 230 niceval = MAX_NICE; in SYSCALL_DEFINE3() 240 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3() [all …]
|