syscall.sh / s390x / getdents64

getdents64

get directory entries

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

Registers

registervalue
r1220, the syscall number
r2unsigned int fd
r3struct linux_dirent64 *dirent
r4unsigned int count
r2the 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/s390x/getdents64