1sched_get_priority_max(3C)Standard C Library Functionssched_get_priority_max(3C)
2
3
4

NAME

6       sched_get_priority_max, sched_get_priority_min - get scheduling parame‐
7       ter limits
8

SYNOPSIS

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

DESCRIPTION

19       The  sched_get_priority_max()  and  sched_get_priority_min()  functions
20       return the appropriate maximum or minimum, respectfully, for the sched‐
21       uling policy specified by policy.
22
23
24       The value of policy is one of the scheduling policy values  defined  in
25       <sched.h>.
26

RETURN VALUES

28       If   successful,   the  sched_get_priority_max()  and  sched_get_prior‐
29       ity_min() functions return the appropriate maximum or minimum  priority
30       values,  respectively. If unsuccessful, they return −1 and set errno to
31       indicate the error.
32

ERRORS

34       The  sched_get_priority_max()  and  sched_get_priority_min()  functions
35       will fail if:
36
37       EINVAL    The  value  of  the  policy  parameter  does  not represent a
38                 defined scheduling policy.
39
40

ATTRIBUTES

42       See attributes(5) for descriptions of the following attributes:
43
44
45
46
47       ┌─────────────────────────────┬─────────────────────────────┐
48ATTRIBUTE TYPE               ATTRIBUTE VALUE              
49       ├─────────────────────────────┼─────────────────────────────┤
50       │Interface Stability          │Committed                    │
51       ├─────────────────────────────┼─────────────────────────────┤
52       │MT-Level                     │MT-Safe                      │
53       ├─────────────────────────────┼─────────────────────────────┤
54       │Standard                     │See standards(5).            │
55       └─────────────────────────────┴─────────────────────────────┘
56

SEE ALSO

58       librt(3LIB),  sched.h(3HEAD),  sched_getparam(3C),  sched_setparam(3C),
59       sched_getscheduler(3C),    sched_rr_get_interval(3C),   sched_setsched‐
60       uler(3C), time.h(3HEAD), attributes(5), standards(5)
61
62
63
64SunOS 5.11                        1 Apr 2008        sched_get_priority_max(3C)
Impressum