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

pthread_attr_getschedparam(2) OSS System Calls Reference Manual
NAME
pthread_attr_getschedparam
- Obtains the scheduling parameters of the scheduling policy
attribute of a thread attributes object
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int pthread_attr_getschedparam(
const pthread_attr_t *attr,
struct sched_param *param );
PARAMETERS
attr species the address of the thread attributes object with the scheduling policy
attribute whose scheduling parameters are obtained.
param receives the values of the scheduling parameters.
DESCRIPTION
This function obtains the values of the scheduling parameters of the scheduling policy attribute
of the thread attributes object specied by the attr parameter and returns them in the param
parameter.
See the pthread_attr_setschedparam(2) reference page either online or in the Open System Ser-
vices System Calls Reference Manual for information about the scheduling parameters.
RETURN VALUES
If an error condition occurs, this function returns an integer value indicating the type of error.
Possible return values are:
0 Successful completion.
[EINVAL] The value specied by the attr parameter is invalid.
RELATED INFORMATION
Functions: pthread_attr_init(2), pthread_attr_setschedparam(2), pthread_create(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.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
522 Hewlett-Packard Company 527186-003