syscall.sh / s390x / open

open

open and possibly create a file

sys_open(const char *filename, int flags, umode_t mode)
number5 (0x5)
abicommon
entry pointsys_open
sinceLinux 4.16
man pageopen(2)
sourceelixir.bootlin.com

Registers

registervalue
r15, the syscall number
r2const char *filename
r3int flags
r4umode_t mode
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/open