The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

NAME

sched_get_priority_max, sched_get_priority_min - get priority limits (REALTIME)

SYNOPSIS

#include <sched.h>

int sched_get_priority_max(int policy); int sched_get_priority_min(int policy);

DESCRIPTION

The sched_get_priority_max() and sched_get_priority_min() functions return the appropriate maximum or minimum, respectfully, for the scheduling policy specified by policy.

The value of policy is one of the scheduling policy values defined in <sched.h>.

RETURN VALUE

If successful, the sched_get_priority_max() and sched_get_priority_min() functions return the appropriate maximum or minimum values, respectively. If unsuccessful, they return a value of -1 and set errno to indicate the error.

ERRORS

The sched_get_priority_max() and sched_get_priority_min() functions will fail if:

[EINVAL]
The value of the policy parameter does not represent a defined scheduling policy.

[ENOSYS]
The sched_get_priority_max(), sched_get_priority_min() and sched_rr_get_interval() functions are not supported by this implementation.

EXAMPLES

None.

APPLICATION USAGE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

sched_getparam(), sched_setparam(), sched_getscheduler(), sched_rr_get_interval(), sched_setscheduler(), <sched.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]