syscall.sh / arm64 / fstat

fstat

get file status

sys_newfstat(unsigned int fd, struct stat *statbuf)
number80 (0x50)
abi64
entry pointsys_newfstat
sinceLinux 3.7
man pagefstat(2)
sourceelixir.bootlin.com

Registers

registervalue
x880, the syscall number
x0unsigned int fd
x1struct stat *statbuf
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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