syscall.sh / xtensa / stat

stat

get file status

sys_newstat(const char *filename, struct stat *statbuf)
number46 (0x2e)
abicommon
entry pointsys_newstat
sinceLinux 5.0
man pagestat(2)
sourceelixir.bootlin.com

Registers

registervalue
a246, the syscall number
a6const char *filename
a3struct stat *statbuf
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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