sched_get_priority_max(3P4)(M88K only)sched_get_priority_max(3P4)
NAME
sched_get_priority_max, sched_get_priority_min,
sched_get_rr_interval - POSIX 1003.4 get scheduling policy
information
SYNOPSIS
#include <sched.h>
#include <timers.h>
int sched_get_priority_max(policy)
int policy;
int sched_get_priority_min(policy)
int policy;
int sched_get_rr_interval(pid, min)
pid_t pid;
struct timespec *min;
DESCRIPTION
The sched_get_priority_max() and sched_get_priority_min()
functions return the appropriate maximum or minimum prior-
ity, respectively, for the scheduling policy specified by
policy. The value of policy must be one of the scheduling
policy values defined in <sched.h>.
The sched_get_rr_interval() function returns the current
time quantum for the process specified by pid in the
timespec structure pointed to by min. The time quantum is
the execution time limit at which a scheduling decision must
be made when another process at the same priority is ready
to execute.
If pid is specified as zero, the time quantum for the
current process is returned.
RETURN VALUE
The sched_get_priority_max() and sched_get_priority_min()
functions, if successful, return the appropriate maximum or
minimum values, respectively. If they fail to complete suc-
cessfully, a value of -1 is returned, and errno is set to
indicate the error. Possible error returns are:
[EINVAL] The value of the policy parameter does not
represent a defined scheduling policy.
The sched_get_rr_interval() function returns zero if it com-
pletes successfully, or a value of -1 with errno set to
indicate the error. Possible error returns are:
[EINVAL] The pid specified does not indicate a process
scheduled in the SCHED_RR scheduling class.
Page 1 CX/UX Programmer's Reference Manual
sched_get_priority_max(3P4)(M88K only)sched_get_priority_max(3P4)
[ESRCH] No process can be found corresponding to that
specified by pid.
FILES
/usr/lib/libposix4.a
SEE ALSO
sched_setscheduler(3P4), sched_getscheduler(3P4),
sched_setparam(3P4), sched_getparam(3P4), getquantum(2),
CX/RT Reference Manual.
WARNING
The interfaces to sched_get_priority_max(),
sched_get_priority_min(), and sched_get_rr_interval(), are
based on IEEE Draft Standard P1003.4/D12. This is an unap-
proved draft, subject to change. Use of information con-
tained in this unapproved draft is at your own risk. This
interface will change to reflect any changes made by future
drafts of POSIX 1003.4.
Page 2 CX/UX Programmer's Reference Manual