syscall.sh / x86 / ugetrlimit
ugetrlimit
get/set resource limits
sys_getrlimit(unsigned int resource, struct rlimit *rlim)
| number | 191 (0xbf) |
|---|---|
| abi | i386 |
| entry point | sys_getrlimit |
| since | Linux 3.3 |
| man page | ugetrlimit(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 191, the syscall number |
ebx | unsigned int resource |
ecx | struct rlimit *rlim |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/ugetrlimit