sys_sched_setparam  [kernel/sched.c]


Sets the scheduling parameters associated with the scheduling policy for a given process. Currently, parameters actually implies scheduling priority.

Arguments

eax 154
ebx PID of the process. If ebx is zero, then the parameters of the current process are set.
ecx Pointer to a properly initialized sched_param structure:
struc sched_param
{
sched_priority rd 1
}

The parameter sched_priority must lie within the range given by sys_sched_get_priority_min and sys_sched_get_priority_max.

Return values

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

-EINVAL The parameter ecx does not make sense for the current scheduling policy.
-EFAULT ecx points to an invalid address.
-ESRCH The process whose ID is ebx could not be found.
-EPERM The calling process does not have appropriate privileges (does not have the CAP_SYS_NICE capability).

Remarks

n/a

Compatibility

n/a