1SCHED_GET_PRIORITY_MAX(P)  POSIX Programmer's Manual SCHED_GET_PRIORITY_MAX(P)
2
3
4

NAME

6       sched_get_priority_max,  sched_get_priority_min  -  get priority limits
7       (REALTIME)
8

SYNOPSIS

10       #include <sched.h>
11
12       int sched_get_priority_max(int policy);
13       int sched_get_priority_min(int policy);
14
15

DESCRIPTION

17       The  sched_get_priority_max()  and  sched_get_priority_min()  functions
18       shall  return the appropriate maximum or minimum, respectively, for the
19       scheduling policy specified by policy.
20
21       The value of policy shall  be  one  of  the  scheduling  policy  values
22       defined in <sched.h>.
23

RETURN VALUE

25       If   successful,   the  sched_get_priority_max()  and  sched_get_prior‐
26       ity_min() functions shall return the  appropriate  maximum  or  minimum
27       values,  respectively. If unsuccessful, they shall return a value of -1
28       and set errno to indicate the error.
29

ERRORS

31       The  sched_get_priority_max()  and  sched_get_priority_min()  functions
32       shall fail if:
33
34       EINVAL The  value  of the policy parameter does not represent a defined
35              scheduling policy.
36
37
38       The following sections are informative.
39

EXAMPLES

41       None.
42

APPLICATION USAGE

44       None.
45

RATIONALE

47       None.
48

FUTURE DIRECTIONS

50       None.
51

SEE ALSO

53       sched_getparam()   ,   sched_setparam()   ,   sched_getscheduler()    ,
54       sched_rr_get_interval()  ,  sched_setscheduler() , the Base Definitions
55       volume of IEEE Std 1003.1-2001, <sched.h>
56
58       Portions of this text are reprinted and reproduced in  electronic  form
59       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
60       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
61       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
62       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
63       event of any discrepancy between this version and the original IEEE and
64       The Open Group Standard, the original IEEE and The Open Group  Standard
65       is  the  referee document. The original Standard can be obtained online
66       at http://www.opengroup.org/unix/online.html .
67
68
69
70IEEE/The Open Group                  2003            SCHED_GET_PRIORITY_MAX(P)
Impressum