sched_get_priority_max and sched_get_priority_min Subroutine

Purpose

Retrieves priority limits.

Library

Standard C Library (libc.a)

Syntax

#include <sched.h>

int sched_get_priority_max (policy)
int policy;

int sched_get_priority_min (policy)
int policy;

Description

The sched_get_priority_max and sched_get_priority_min subroutines return the appropriate maximum or minimum, respectively, for the scheduling policy specified by the policy parameter.

The value of the policy parameter is one of the scheduling policy values defined in the sched.h header file.

Parameters

Item Description
policy Specifies the scheduling policy.

Return Values

If successful, the sched_get_priority_max and sched_get_priority_min subroutines return the appropriate maximum or minimum values, respectively. If unsuccessful, they return -1 and set errno to indicate the error.

Error Codes

The sched_get_priority_max and sched_get_priority_min subroutines fail if:
Item Description
EINVAL The value of the policy parameter does not represent a defined scheduling policy.
ENOTSUP This interface does not support processes capable of checkpoint.