sched_setparam on riscv64

set and get scheduling parameters

sys_sched_setparam(pid_t pid, struct sched_param *param)
number118 (0x76)
abicommon
entry pointsys_sched_setparam
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagesched_setparam(2)
sourceelixir.bootlin.com

Registers

registervalue
a7118, the syscall number
a0pid_t pid
a1struct sched_param *param
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/sched_setparam