sched_getparam on riscv64

set and get scheduling parameters

sys_sched_getparam(pid_t pid, struct sched_param *param)
number121 (0x79)
abicommon
entry pointsys_sched_getparam
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagesched_getparam(2)
sourceelixir.bootlin.com

Registers

registervalue
a7121, 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_getparam