syscall.sh / xtensa / getdents

getdents

get directory entries

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

Registers

registervalue
a259, the syscall number
a6unsigned int fd
a3struct linux_dirent *dirent
a4unsigned int count
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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