sys_sched_get_priority_min(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

sys_sched_get_priority_min πŸ’…

okay bestie, welcome to the Kernel API Manual side of the group chat. This is the page for sys_sched_get_priority_min(9), and it's here to answer one very specific question: what's the smallest RT priority a scheduling class will let you use? No cap, that's the whole vibe. ✨

🌸 NAME 🌸

sys_sched_get_priority_min β€” return minimum RT priority. literally that. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

long sys_sched_get_priority_min (int policy );

πŸ’… ARGUMENTS πŸ’…

  • policy β€” scheduling class. That's the argument, bestie; it tells the syscall which scheduling class you're asking about. πŸŽ€

πŸ”₯ RETURN πŸ”₯

On success, this syscall returns the minimum rt_priority that can be used by a given scheduling class. On failure, a negative error code is returned. Slay for successful priorities, sigh for negative error codes. 😭

🌈 SEE ALSO 🌈

Kernel file: ./kernel/sched/syscalls.c β€” that's the source vibe check, iykyk. πŸ’«

The whole crew: 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_max(9), sys_sched_rr_get_interval(9). Obsessed with this whole crew, fr fr. 🫢


made with πŸ’– from ./kernel/sched, dated October 2026 πŸŽ€ byeee.

πŸ“¦ where this page comes from