Retrieves priority limits.
Standard C Library (libc.a)
#include <sched.h>
int sched_get_priority_max (policy)
int policy;
int sched_get_priority_min (policy)
int policy;
The sched_get_priority_max and sched_get_priority_min subroutines return the appropriate maximum or minimum, respectively, for the scheduling policy specified by the policy parameter.
The value of the policy parameter is one of the scheduling policy values defined in the sched.h header file.
Item | Description |
---|---|
policy | Specifies the scheduling policy. |
If successful, the sched_get_priority_max and sched_get_priority_min subroutines return the appropriate maximum or minimum values, respectively. If unsuccessful, they return -1 and set errno to indicate the error.
Item | Description |
---|---|
EINVAL | The value of the policy parameter does not represent a defined scheduling policy. |
ENOTSUP | This interface does not support processes capable of checkpoint. |