syscall.sh / x64 / setrlimit

setrlimit

get/set resource limits

sys_setrlimit(unsigned int resource, struct rlimit *rlim)
number160 (0xa0)
abicommon
entry pointsys_setrlimit
sinceLinux 3.3
man pagesetrlimit(2)
sourceelixir.bootlin.com

Registers

registervalue
rax160, the syscall number
rdiunsigned int resource
rsistruct rlimit *rlim
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/setrlimit