sys_sched_get_priority_max(9)
π 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 π
task_prio(9)idle_cpu(9)idle_task(9)find_process_by_pid(9)sched_setscheduler(9)sched_setscheduler_nocheck(9)sys_sched_setscheduler(9)sys_sched_setparam(9)sys_sched_setattr(9)sys_sched_getscheduler(9)sys_sched_getparam(9)sys_sched_getattr(9)sys_sched_setaffinity(9)sys_sched_getaffinity(9)sys_sched_yield(9)yield(9)yield_to(9)sys_sched_get_priority_min(9)sys_sched_rr_get_interval(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms