syscall.sh / x32 / getrlimit
getrlimit
get/set resource limits
sys_getrlimit(unsigned int resource, struct rlimit *rlim)
| number | 1073741921 (0x40000061) |
|---|---|
| abi | common |
| entry point | sys_getrlimit |
| since | Linux 3.4 |
| man page | getrlimit(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741921, the syscall number |
rdi | unsigned int resource |
rsi | struct rlimit *rlim |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 97
- x86 76
- arm64 163
- riscv64 163
- ppc 76
- s390x 191
- mips64 5095
- mipsn32 6095
- mipso32 4076
- alpha 144
- arc 163
- csky 163
- hexagon 163
- m68k 76
- nios2 163
- openrisc 163
- parisc 76
- sh 76
- sparc 144
- sparc64 144
- xtensa 189
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/getrlimit