syscall.sh / x86 / file_getattr

file_getattr

sys_file_getattr(int dfd, const char *filename, struct file_attr *attr, size_t usize, unsigned int at_flags)
number468 (0x1d4)
abii386
entry pointsys_file_getattr
sinceLinux 6.17
sourceelixir.bootlin.com

Registers

registervalue
eax468, the syscall number
ebxint dfd
ecxconst char *filename
edxstruct file_attr *attr
esisize_t usize
ediunsigned int at_flags
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/file_getattr