Gets scheduling priority of a process, a process group, or an user.
Arguments
eax |
96 |
ebx |
It may be one of the following values:
PRIO_PROCESS - process identifier
PRIO_PGRP - process group identifier
PRIO_USER - user identifier |
|
ecx |
Should be 0. This value denotes (respectively) the calling process, the process group of the calling process, or the real user ID of the calling process. |
Return values
If the system call succeeds the return value is the requested priority. It's important to note that in order to avoid posible negative return values this system call returns a value that has been offset by 20 (i.e. it returns 40..1 instead of -20..19).
If the system call fails the return value is one of the following errno values:
-EINVAL |
ebx was not one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER. |
-ESRCH |
No process was located using the parameters specified. |
|
Remarks
n/a
Compatibility
n/a |