syscall.sh / sh / ugetrlimit
ugetrlimit
get/set resource limits
sys_getrlimit(unsigned int resource, struct rlimit *rlim)
| number | 191 (0xbf) |
|---|---|
| abi | common |
| entry point | sys_getrlimit |
| since | Linux 5.0 |
| man page | ugetrlimit(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 191, the syscall number |
r4 | unsigned int resource |
r5 | struct rlimit *rlim |
r0 | the 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