syscall.sh / s390x / getdents

getdents

get directory entries

sys_getdents(unsigned int fd, struct linux_dirent *dirent, unsigned int count)
number141 (0x8d)
abicommon
entry pointsys_getdents
sinceLinux 4.16
man pagegetdents(2)
sourceelixir.bootlin.com

Registers

registervalue
r1141, the syscall number
r2unsigned int fd
r3struct linux_dirent *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/getdents