syscall.sh / x32 / stat

stat

get file status

sys_newstat(const char *filename, struct stat *statbuf)
number1073741828 (0x40000004)
abicommon
entry pointsys_newstat
sinceLinux 3.4
man pagestat(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741828, the syscall number
rdiconst char *filename
rsistruct stat *statbuf
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/stat