sys_sched_setscheduler(9)
π sys_sched_setscheduler(9) π
okay so bestie, welcome to the Kernel API Manual page for sys_sched_setscheduler(9) β and the way this page is short but still eats? obsessed. it's literally all about setting/changing the scheduler policy and RT priority. yes ma'am. β¨
πΈ NAME πΈ
sys_sched_setscheduler β set/change the scheduler policy and RT priority. periodt.
β¨ SYNOPSIS β¨
long sys_sched_setscheduler (pid_t pid , int policy , struct sched_param __user * param );
π ARGUMENTS π
pidβ the pid in question. literally just the pid we're talking about, bestie.policyβ new policy. the fresh scheduler policy, no cap.paramβ structure containing the new RT priority. it's givingstruct sched_param, and it holds the new RT priority. π«Ά
π₯ RETURN π₯
0 on success. An error code otherwise. so if the vibe check passes, you get 0; if not, you get an error code. simple as that. π
π¦ SEE ALSO π¦
Kernel file: ./kernel/sched/syscalls.c β yes, that's the kernel file, bestie. π
task_prio(9)idle_cpu(9)idle_task(9)find_process_by_pid(9)sched_setscheduler(9)sched_setscheduler_nocheck(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_get_priority_min(9)sys_sched_rr_get_interval(9)
mwah π β source/version ./kernel/sched, date October 2026, and it's literally sys_sched_setscheduler(9) signing off. π«Άπ
π¦ 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