syscall.sh / arm64 / getdents64
getdents64
get directory entries
sys_getdents64(unsigned int fd, struct linux_dirent64 *dirent, unsigned int count)
| number | 61 (0x3d) |
|---|---|
| abi | common |
| entry point | sys_getdents64 |
| since | Linux 3.7 |
| man page | getdents64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
x8 | 61, the syscall number |
x0 | unsigned int fd |
x1 | struct linux_dirent64 *dirent |
x2 | unsigned int count |
x0 | the return value |
Then run svc #0 to enter the kernel.
Same syscall on other architectures
- x64 217
- x86 220
- 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
- sh 220
- sparc 154
- sparc64 154
- xtensa 60
Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/getdents64