syscall.sh / riscv64 / setrlimit

setrlimit

get/set resource limits

sys_setrlimit(unsigned int resource, struct rlimit *rlim)
number164 (0xa4)
abirlimit
entry pointsys_setrlimit
sinceLinux 4.15
man pagesetrlimit(2)
sourceelixir.bootlin.com

Registers

registervalue
a7164, the syscall number
a0unsigned int resource
a1struct rlimit *rlim
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/setrlimit