syscall.sh / s390x / stat

stat

get file status

sys_newstat(const char *filename, struct stat *statbuf)
number106 (0x6a)
abicommon
entry pointsys_newstat
sinceLinux 4.16
man pagestat(2)
sourceelixir.bootlin.com

Registers

registervalue
r1106, the syscall number
r2const char *filename
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/stat