sys_sched_getscheduler  [kernel/sched.c]


Queries the scheduling policy currently applied to the given process.

See sys_sched_setscheduler for a more detailed information about scheduling policies.

Arguments

eax 157
ebx PID of the process whose policy to be retrieved. If ebx equals zero, the policy of the calling process will be retrieved.

Return values

If the system call succeeds the return value is the policy for the process (a non-negative integer).
If the system call fails the return value is one of the following errno values:

-ESRCH The process whose ID is ebx could not be found.

Remarks

n/a

Compatibility

n/a