Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/
Dsys.c194 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument
202 if (niceval < task_nice(p) && !can_nice(p, niceval)) { in set_one_prio()
206 no_nice = security_task_setnice(p, niceval); in set_one_prio()
213 set_user_nice(p, niceval); in set_one_prio()
218 SYSCALL_DEFINE3(setpriority, int, which, int, who, int, niceval) in SYSCALL_DEFINE3() argument
232 if (niceval < MIN_NICE) in SYSCALL_DEFINE3()
233 niceval = MIN_NICE; in SYSCALL_DEFINE3()
234 if (niceval > MAX_NICE) in SYSCALL_DEFINE3()
235 niceval = MAX_NICE; in SYSCALL_DEFINE3()
245 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
[all …]
/linux-6.6.21/include/linux/
Dsyscalls.h647 asmlinkage long sys_setpriority(int which, int who, int niceval);