NAME
sched_getparam —
get scheduling parameters (REALTIME)
SYNOPSIS
#include <sched.h> int sched_getparam(pid_t pid, struct sched_param *param);
DESCRIPTION
The sched_getparam() function returns the scheduling parameters of a process specified by pid in the sched_param structure pointed to by param .
If a process specified by pid exists and if the calling process has permission, the scheduling parameters for the process whose process ID is equal to pid will be returned.
If pid is zero, the scheduling parameters for the calling process will be returned. The behaviour of the sched_getparam() function is unspecified if the value of pid is negative.
RETURN VALUE
Upon successful completion, the sched_getparam() function returns zero. If the call to sched_getparam() is unsuccessful, the function returns a value of -1 and sets errno to indicate the error.
ERRORS
The sched_getparam() function will fail if:
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
sched_getscheduler(3) , sched_setparam(3) , sched_setscheduler(3) , <sched.h> .
DERIVATION
Derived from the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995)