syscall.sh / sh / close_range
close_range
close all file descriptors in a given range
sys_close_range(unsigned int fd, unsigned int max_fd, unsigned int flags)
| number | 436 (0x1b4) |
|---|---|
| abi | common |
| entry point | sys_close_range |
| since | Linux 5.9 |
| man page | close_range(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 436, the syscall number |
r4 | unsigned int fd |
r5 | unsigned int max_fd |
r6 | unsigned int flags |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x64 436
- x86 436
- arm64 436
- arm 436
- riscv64 436
- x32 1073742260
- loongarch64 436
- ppc64 436
- ppc 436
- s390x 436
- mips64 5436
- mipsn32 6436
- mipso32 4436
- alpha 546
- arc 436
- csky 436
- hexagon 436
- m68k 436
- microblaze 436
- nios2 436
- openrisc 436
- parisc 436
- sparc 436
- sparc64 436
- xtensa 436
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/close_range