syscall.sh / sh / 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)
abicommon
entry pointsys_file_getattr
sinceLinux 6.17
sourceelixir.bootlin.com

Registers

registervalue
r3468, the syscall number
r4int dfd
r5const char *filename
r6struct file_attr *attr
r7size_t usize
r0unsigned int at_flags
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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