syscall.sh / sh / getdents64
getdents64
get directory entries
sys_getdents64(unsigned int fd, struct linux_dirent64 *dirent, unsigned int count)
| number | 220 (0xdc) |
|---|---|
| abi | common |
| entry point | sys_getdents64 |
| since | Linux 5.0 |
| man page | getdents64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 220, the syscall number |
r4 | unsigned int fd |
r5 | struct linux_dirent64 *dirent |
r6 | unsigned int count |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x64 217
- x86 220
- arm64 61
- arm 217
- riscv64 61
- x32 1073742041
- loongarch64 61
- ppc64 202
- ppc 202
- s390x 220
- mips64 5308
- mipsn32 6299
- mipso32 4219
- alpha 377
- arc 61
- csky 61
- hexagon 61
- m68k 220
- microblaze 220
- nios2 61
- openrisc 61
- parisc 201
- sparc 154
- sparc64 154
- xtensa 60
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/getdents64