syscall.sh / xtensa / fstat

fstat

get file status

sys_newfstat(unsigned int fd, struct stat *statbuf)
number54 (0x36)
abicommon
entry pointsys_newfstat
sinceLinux 5.0
man pagefstat(2)
sourceelixir.bootlin.com

Registers

registervalue
a254, the syscall number
a6unsigned int fd
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/fstat