sys_nice  [kernel/sched.c]


Changes priority of the current process.

Arguments

eax 34
ebx Value to add to the nice value of the current process. (A higher nice value means a low priority.) Only the superuser may specify a negative increment, or priority increase. The range for nice values is described in sys_getpriority.

Return values

If the system call succeeds the return value is the new nice value.
If the system call fails the return value is one of the following errno values:

-EPERM The calling process attempted to increase its priority by supplying a negative value in ebx but has insufficient privileges. ( CAP_SYS_NICE capability is required. (But see the discussion of the RLIMIT_NICE resource limit in sys_setrlimit.)

Remarks

n/a

Compatibility

n/a