syscall.sh / sh / getdents64

getdents64

get directory entries

sys_getdents64(unsigned int fd, struct linux_dirent64 *dirent, unsigned int count)
number220 (0xdc)
abicommon
entry pointsys_getdents64
sinceLinux 5.0
man pagegetdents64(2)
sourceelixir.bootlin.com

Registers

registervalue
r3220, the syscall number
r4unsigned int fd
r5struct linux_dirent64 *dirent
r6unsigned int count
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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