syscall.sh / riscv64 / openat

openat

open and possibly create a file

sys_openat(int dfd, const char *filename, int flags, umode_t mode)
number56 (0x38)
abicommon
entry pointsys_openat
sinceLinux 4.15
man pageopenat(2)
sourceelixir.bootlin.com

Registers

registervalue
a756, the syscall number
a0int dfd
a1const char *filename
a2int flags
a3umode_t mode
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/openat