syscall.sh / x86 / getdents

getdents

get directory entries

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

Registers

registervalue
eax141, the syscall number
ebxunsigned int fd
ecxstruct linux_dirent *dirent
edxunsigned int count
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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