syscall.sh / sh / ugetrlimit

ugetrlimit

get/set resource limits

sys_getrlimit(unsigned int resource, struct rlimit *rlim)
number191 (0xbf)
abicommon
entry pointsys_getrlimit
sinceLinux 5.0
man pageugetrlimit(2)
sourceelixir.bootlin.com

Registers

registervalue
r3191, the syscall number
r4unsigned int resource
r5struct rlimit *rlim
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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