Returns the minimum priority for the specified scheduling policy.
Syntax
sched_get_priority_min(
policy);
Argument Data Type Access
policy integer read
1 – C Binding
#include <sched.h>
int
sched_get_priority_min (
int policy);
2 – Arguments
policy
One of the scheduling policies, as defined in sched.h.
3 – Description
This routine returns the minimum priority for the scheduling
policy specified in the policy argument. The argument value
must be one of the scheduling policies (SCHED_FIFO, SCHED_RR,
or SCHED_OTHER), as defined in the sched.h header file.
No special privileges are required to use this routine.
4 – Return Values
If an error condition occurs, this routine returns an integer
value indicating the type of error. Possible return values are as
follows:
Return Description
0 Successful completion.
[EINVAL] The value of the policy argument does not represent a
defined scheduling policy.