getdents64 on arm64

get directory entries

sys_getdents64(unsigned int fd, struct linux_dirent64 *dirent, unsigned int count)
number61 (0x3d)
abicommon
entry pointsys_getdents64
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pagegetdents64(2)
sourceelixir.bootlin.com

Registers

registervalue
x861, the syscall number
x0unsigned int fd
x1struct linux_dirent64 *dirent
x2unsigned int count
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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