syscall.sh / x64 / getdents
getdents
get directory entries
sys_getdents(unsigned int fd, struct linux_dirent *dirent, unsigned int count)
| number | 78 (0x4e) |
|---|---|
| abi | common |
| entry point | sys_getdents |
| since | Linux 3.3 |
| man page | getdents(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 78, the syscall number |
rdi | unsigned int fd |
rsi | struct linux_dirent *dirent |
rdx | unsigned int count |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 141
- arm 141
- x32 1073741902
- ppc64 141
- ppc 141
- s390x 141
- mips64 5076
- mipsn32 6076
- mipso32 4141
- alpha 305
- m68k 141
- microblaze 141
- parisc 141
- sh 141
- sparc 174
- sparc64 174
- xtensa 59
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/getdents