sys_sched_get_priority_max(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

sys_sched_get_priority_max β€” bestie, this one returns the maximum RT priority ✨


πŸŽ€ SYNOPSIS πŸŽ€

long sys_sched_get_priority_max (int policy );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • policy β€” the scheduling class, iykyk 🌸

πŸ”₯ RETURN πŸ”₯

So like, on success this syscall returns the maximum rt_priority that can be used by a given scheduling class πŸ’– periodt.

On failure? it hands you back a negative error code 😭 that's it, that's the whole vibe check.


🌈 SEE ALSO 🌈

Kernel file ./kernel/sched/syscalls.c πŸ‘‘


okay that's the whole page bestie, go read the source and slay πŸ’…βœ¨

shoutout to ./kernel/sched, dated October 2026, home of sys_sched_get_priority_max(9) β€” mwah πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from