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 by pid. (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>


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 πŸ’‹βœ¨