SCHED_GET_PRIORITY_MAX(3P)
π sched_get_priority_max(3P) β POSIX Programmer's Manual π
okay bestie, welcome to the POSIX Programmer's Manual, page SCHED_GET_PRIORITY_MAX(3P). before we even start, real talk:
PROLOG heads-up: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ (so go consult the corresponding Linux manual page for the deets on Linux behavior), or honestly the interface may not be implemented on Linux at all. no cap. π«Ά
β¨ 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 π
so like, sched_get_priority_max() and sched_get_priority_min() shall return the appropriate maximum or minimum, respectively, for the scheduling policy specified by policy. that's it, that's the whole vibe. π
and the value of policy shall be one of the scheduling policy values defined in <sched.h>. periodt. π
π¦ RETURN VALUE π¦
if it's successful, sched_get_priority_max() and sched_get_priority_min() shall return the appropriate maximum or minimum values, respectively. slay. β¨
if it's unsuccessful?? they shall return a value of -1 and set errno to indicate the error. not the moment bestie π
π ERRORS π
the sched_get_priority_max() and sched_get_priority_min() functions shall fail if:
EINVALβ the value of thepolicyparameter does not represent a defined scheduling policy. like, that policy is not invited to the function π
heads up: the following sections are informative. (so, vibe only, no rules here π)
πΈ EXAMPLES πΈ
None. π (yes literally, there are none, moving on bestie)
π§ APPLICATION USAGE π§
None. π
π RATIONALE π
None. π
β FUTURE DIRECTIONS β
None. π
π₯ SEE ALSO π₯
sched_getparam()sched_setparam()sched_getscheduler()sched_rr_get_interval()sched_setscheduler()
also the Base Definitions volume of POSIX.1β2017, <sched.h> π
π COPYRIGHT π
portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. π
in the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. (read: the original is the main character, this one is the cover π«Ά) the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page, bestie!! π β¨ brought to you by IEEE/The Open Group, 2017 β mwah, go read your scheduling policies responsibly ππ¦π
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms