Searched refs:niceval (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/kernel/ |
D | sys.c | 203 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument 211 if (niceval < task_nice(p) && !can_nice(p, niceval)) { in set_one_prio() 215 no_nice = security_task_setnice(p, niceval); in set_one_prio() 222 set_user_nice(p, niceval); in set_one_prio() 227 SYSCALL_DEFINE3(setpriority, int, which, int, who, int, niceval) in SYSCALL_DEFINE3() argument 241 if (niceval < MIN_NICE) in SYSCALL_DEFINE3() 242 niceval = MIN_NICE; in SYSCALL_DEFINE3() 243 if (niceval > MAX_NICE) in SYSCALL_DEFINE3() 244 niceval = MAX_NICE; in SYSCALL_DEFINE3() 254 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3() [all …]
|
/linux-6.12.1/include/linux/ |
D | syscalls.h | 665 asmlinkage long sys_setpriority(int which, int who, int niceval);
|