syscall.sh / nios2 / 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 3.19
man pageopenat(2)
sourceelixir.bootlin.com

Registers

registervalue
r256, the syscall number
r4int dfd
r5const char *filename
r6int flags
r7umode_t mode
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

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