sys_sched_setparam(9)
πΈ sys_sched_setparam β like, the kernel API manual, bestie β¨
okay so real talk, this one lives in the Kernel API Manual section (9), so it's a kernel-internals girlie, not your everyday userland command. come sit with me π
β¨ NAME β¨
sys_sched_setparam β set/change the RT priority of a thread π
like. it literally does what it says on the tin. RT priority goes in, RT priority gets set/changed. iconic.
π¦ SYNOPSIS π¦
long sys_sched_setparam (pid_t pid , struct sched_param __user * param );
that's the whole signature, no cap. one pid_t, one struct sched_param __user *, and it hands you back a long. π«Ά
πΈ ARGUMENTS πΈ
pidβ the pid in question. yes, that pid. the one you're asking about. πparamβ structure containing the new RT priority. that's yourstruct sched_param __user *, and it's the whole point of the whole function fr fr π
π RETURN π
0on success β¨ slay- An error code otherwise π (not zero? something went sideways, bestie)
π SEE ALSO π
first up, the kernel file it hangs out in: ./kernel/sched/syscalls.c β that's home base π
and then the whole friend group, no one left out:
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_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)
that's the entire group chat, periodt π
ngl if you're the kind of person who reads scheduling syscalls for fun, you're giving main character energy and i'm obsessed π§
and that's the vibe check, bestie β this page is sourced from ./kernel/sched and dated October 2026, so if you're reading it in the future, hi, hope the scheduler's treating you well ππ«ΆπΈ
π¦ 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