syscall.sh / s390x / fstat

fstat

get file status

sys_newfstat(unsigned int fd, struct stat *statbuf)
number108 (0x6c)
abicommon
entry pointsys_newfstat
sinceLinux 4.16
man pagefstat(2)
sourceelixir.bootlin.com

Registers

registervalue
r1108, the syscall number
r2unsigned int fd
r3struct stat *statbuf
r2the 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/s390x/fstat