syscall.sh / m68k / readdir

readdir

read directory entry

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

Registers

registervalue
d089, the syscall number
d1unsigned int fd
d2struct old_linux_dirent *dirent
d3unsigned int count
d0the return value

Then run trap #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/readdir