setitimer on riscv64

get or set value of an interval timer

sys_setitimer(int which, struct __kernel_old_itimerval *value, struct __kernel_old_itimerval *ovalue)
number103 (0x67)
abicommon
kconfigCONFIG_POSIX_TIMERS
entry pointsys_setitimer
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagesetitimer(2)
sourceelixir.bootlin.com

Registers

registervalue
a7103, the syscall number
a0int which
a1struct __kernel_old_itimerval *value
a2struct __kernel_old_itimerval *ovalue
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/setitimer