Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (s and S) sched_get_priority_min(2)
NAME
sched_get_priority_min
- Returns the minimum priority for a scheduling policy
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
[ #include <sched.h> ]
#include <spthread.h>
int sched_get_priority_min (
int policy );
PARAMETERS
policy species one of the scheduling policies dened in the sched.h header le.
DESCRIPTION
The sched_get_priority_min()
function returns the minimum priority for the scheduling policy
specied by the policy parameter. The value of policy must be one of the scheduling policies
(SCHED_FIFO, SCHED_RR,orSCHED_OTHER)dened in the sched.h header le.
No special privileges are needed to use the sched_get_priority_min() function.
RETURN VALUES
On a successful call, the requested value is returned. If the call fails, a value of -1 is returned and
errno is set to indicate the error.
ERRORS
The sched_get_priority_min() function fails under the following condition:
[EINVAL] The value of the policy parameter does not represent a dened scheduling policy.
RELATED INFORMATION
Functions: sched_get_priority_max(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication. Interfaces documented on this
reference page conform to the following industry standards:
IEEE Std 1003.1b-1993, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 73