Lines Matching refs:niceval
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()
263 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
279 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
302 long niceval, retval = -ESRCH; in SYSCALL_DEFINE2() local
317 niceval = nice_to_rlimit(task_nice(p)); in SYSCALL_DEFINE2()
318 if (niceval > retval) in SYSCALL_DEFINE2()
319 retval = niceval; in SYSCALL_DEFINE2()
329 niceval = nice_to_rlimit(task_nice(p)); in SYSCALL_DEFINE2()
330 if (niceval > retval) in SYSCALL_DEFINE2()
331 retval = niceval; in SYSCALL_DEFINE2()
347 niceval = nice_to_rlimit(task_nice(p)); in SYSCALL_DEFINE2()
348 if (niceval > retval) in SYSCALL_DEFINE2()
349 retval = niceval; in SYSCALL_DEFINE2()