syscall.sh / x64 / creat

creat

open and possibly create a file

sys_creat(const char *pathname, umode_t mode)
number85 (0x55)
abicommon
entry pointsys_creat
sinceLinux 3.3
man pagecreat(2)
sourceelixir.bootlin.com

Registers

registervalue
rax85, the syscall number
rdiconst char *pathname
rsiumode_t mode
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/creat