sys_sched_setscheduler(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 giving struct 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. πŸ‘‘


mwah πŸ’‹ β€” source/version ./kernel/sched, date October 2026, and it's literally sys_sched_setscheduler(9) signing off. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from