SCHED_G...ITY_MAX(3POSIX)
SCHED_GET_PRIORITY_MAX(3POSIX) π
okay bestie, we're reading the POSIX Programmer's Manual today, and this little page is all about sched_get_priority_max and sched_get_priority_min β the two functions that tell you where the priority ceiling and floor live for a scheduling policy. it's giving "small but mighty" fr fr β¨
PROLOG π«Ά
so like, heads up before we even start: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ β so if you're on Linux, go peek at the corresponding Linux manual page for the real tea β or the interface might not even 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 π¦
okay so here's the vibe: sched_get_priority_max() and sched_get_priority_min() shall return the appropriate maximum or minimum, respectively, for the scheduling policy that you pass in as policy. slay.
and the value of policy shall be one of the scheduling policy values defined in <sched.h>. that's the whole assignment bestie, that's it π
RETURN VALUE β¨
if it works? sched_get_priority_max() and sched_get_priority_min() shall return the appropriate maximum or minimum values, respectively. iconic.
if it does NOT work? they shall return a value of -1 and set errno to indicate the error. not the moment. π
ERRORS π
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, she's not on the list bestie, she's a stranger π«
heads up: the following sections are informative. (translation: the rest is bonus content, not rules π )
EXAMPLES π
None. (yes queen, nothing. we move π)
APPLICATION USAGE πΈ
None. (again, nothing. the page said what it said and dipped β¨)
RATIONALE π§
None. (nope, no reasoning given. mysterious main character energy fr π)
FUTURE DIRECTIONS β
None. (the future is a blank canvas, bestie π¦)
SEE ALSO π₯
sched_getparam()sched_setparam()sched_getscheduler()sched_rr_get_interval()sched_setscheduler()- the Base Definitions volume of POSIX.1β2017,
<sched.h>
like, go read those too, they're the friend group π
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. 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!! this one came from IEEE/The Open Group, dated 2017 β so like, vintage but still serving. thanks for reading with me, mwah ππβ¨
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms