syscall.sh / ppc / readdir

readdir

read directory entry

sys_old_readdir(unsigned int fd, struct old_linux_dirent *dirent, unsigned int count)
number89 (0x59)
abi32
entry pointsys_old_readdir
sinceLinux 5.0
man pagereaddir(2)
sourceelixir.bootlin.com

Registers

registervalue
r089, the syscall number
r3unsigned int fd
r4struct old_linux_dirent *dirent
r5unsigned int count
r3the 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