syscall.sh / x32 / file_getattr

file_getattr

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

Registers

registervalue
rax1073742292, the syscall number
rdiint dfd
rsiconst char *filename
rdxstruct file_attr *attr
r10size_t usize
r8unsigned int at_flags
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/file_getattr