syscall.sh / ppc / readdir
readdir
read directory entry
sys_old_readdir(unsigned int fd, struct old_linux_dirent *dirent, unsigned int count)
| number | 89 (0x59) |
|---|---|
| abi | 32 |
| entry point | sys_old_readdir |
| since | Linux 5.0 |
| man page | readdir(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 89, the syscall number |
r3 | unsigned int fd |
r4 | struct old_linux_dirent *dirent |
r5 | unsigned int count |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc/readdir