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

sched_get_priority_max(2) OSS System Calls Reference Manual
NAME
sched_get_priority_max
- Returns the maximum priority for a scheduling policy
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/systemzdllsnnn/zsptdll
SYNOPSIS
[ #include <sched.h> ]
#include <spthread.h>
int sched_get_priority_max (
int policy );
PARAMETERS
policy specifies one of the scheduling policies defined in the sched.h header file.
DESCRIPTION
The sched_get_priority_max()
function returns the maximum priority for the scheduling policy
specified by the policy parameter. The value of policy must be one of the scheduling policies
(SCHED_FIFO, SCHED_RR,orSCHED_OTHER) defined in the sched.h header file.
No special privileges are needed to use the sched_get_priority_max() function.
RETURN VALUES
On a successful call, the requested value is returned. If a call fails, a value of -1 is returned and
errno is set to indicate the error.
ERRORS
The sched_get_priority_max() function fails under the following condition:
[EINVAL] The value of the policy parameter does not represent a defined scheduling policy.
RELATED INFORMATION
Functions: sched_get_priority_min(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specification. 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 file spthread.h is an HP exception to the POSIX standard.
72 Hewlett-Packard Company 527186-003