SCHED_R...INTERVAL(3POSIX)
π SCHED_RR_GET_INTERVAL β bestie edition π
okay so this page is from the POSIX Programmer's Manual (yes, the 3POSIX one, we're being β¨officialβ¨ today). grab a boba, we're learning about realtime scheduling limits π¦
πΈ PROLOG πΈ
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
ngl that's the standard disclaimer, but fr fr: check your platform before you go feral π
β¨ NAME β¨
sched_rr_get_interval β get execution time limits (REALTIME)
π SYNOPSIS π
#include <sched.h>
int sched_rr_get_interval(pid_t pid, struct timespec *interval);
π¦ DESCRIPTION π¦
So basically, sched_rr_get_interval() shall update the timespec structure that interval points at, and fill it with the current execution time limit (that is, the time quantum) for the process specified by pid.
And if pid is zero? Then it's giving main character energy and returns the current execution time limit for the calling process. periodt π
π RETURN VALUE π
If it ate, sched_rr_get_interval() shall return zero.
Otherwise it shall return a value of -1 and set errno to indicate the error. not the vibe, but okay π
π ERRORS π
sched_rr_get_interval() shall fail if:
ESRCHβ No process can be found corresponding to that specified bypid. (ghosted, literally π»)
The following sections are informative.
π EXAMPLES π
None. (yeah bestie, nothing, we move π§)
π APPLICATION USAGE π
None.
π RATIONALE π
None.
β FUTURE DIRECTIONS β
None.
π₯ SEE ALSO π₯
sched_getparam()sched_get_priority_max()sched_getscheduler()sched_setparam()sched_setscheduler()
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. 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, tysm for reading π₯Ήπ
IEEE/The Open Group, 2017 β yeah that's the source and the date, the original footer said so, and now it lives here as my cute little sign-off. 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