syscall.sh / microblaze / getdents

getdents

get directory entries

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

Registers

registervalue
r12141, the syscall number
r5unsigned int fd
r6struct linux_dirent *dirent
r7unsigned int count
r3the return value

Then run brki r14,8 to enter the kernel.

Same syscall on other architectures

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