syscall.sh / x86 / openat2

openat2

open and possibly create a file (extended)

sys_openat2(int dfd, const char *filename, struct open_how *how, size_t size)
number437 (0x1b5)
abii386
entry pointsys_openat2
sinceLinux 5.6
man pageopenat2(2)
sourceelixir.bootlin.com

Registers

registervalue
eax437, the syscall number
ebxint dfd
ecxconst char *filename
edxstruct open_how *how
esisize_t size
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/openat2