1SCHED_GET_PRIORITY_MAX(3P) POSIX Programmer's ManualSCHED_GET_PRIORITY_MAX(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 sched_get_priority_max, sched_get_priority_min — get priority limits
13 (REALTIME)
14
16 #include <sched.h>
17
18 int sched_get_priority_max(int policy);
19 int sched_get_priority_min(int policy);
20
22 The sched_get_priority_max() and sched_get_priority_min() functions
23 shall return the appropriate maximum or minimum, respectively, for the
24 scheduling policy specified by policy.
25
26 The value of policy shall be one of the scheduling policy values
27 defined in <sched.h>.
28
30 If successful, the sched_get_priority_max() and sched_get_prior‐
31 ity_min() functions shall return the appropriate maximum or minimum
32 values, respectively. If unsuccessful, they shall return a value of -1
33 and set errno to indicate the error.
34
36 The sched_get_priority_max() and sched_get_priority_min() functions
37 shall fail if:
38
39 EINVAL The value of the policy parameter does not represent a defined
40 scheduling policy.
41
42 The following sections are informative.
43
45 None.
46
48 None.
49
51 None.
52
54 None.
55
57 sched_getparam(), sched_setparam(), sched_getscheduler(),
58 sched_rr_get_interval(), sched_setscheduler()
59
60 The Base Definitions volume of POSIX.1‐2017, <sched.h>
61
63 Portions of this text are reprinted and reproduced in electronic form
64 from IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
65 table Operating System Interface (POSIX), The Open Group Base Specifi‐
66 cations Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of
67 Electrical and Electronics Engineers, Inc and The Open Group. In the
68 event of any discrepancy between this version and the original IEEE and
69 The Open Group Standard, the original IEEE and The Open Group Standard
70 is the referee document. The original Standard can be obtained online
71 at http://www.opengroup.org/unix/online.html .
72
73 Any typographical or formatting errors that appear in this page are
74 most likely to have been introduced during the conversion of the source
75 files to man page format. To report such errors, see https://www.ker‐
76 nel.org/doc/man-pages/reporting_bugs.html .
77
78
79
80IEEE/The Open Group 2017 SCHED_GET_PRIORITY_MAX(3P)