syscall.sh / xtensa / creat
creat
open and possibly create a file
sys_creat(const char *pathname, umode_t mode)
| number | 21 (0x15) |
|---|---|
| abi | common |
| entry point | sys_creat |
| since | Linux 5.0 |
| man page | creat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 21, the syscall number |
a6 | const char *pathname |
a3 | umode_t mode |
a2 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 85
- x86 8
- arm 8
- x32 1073741909
- ppc64 8
- ppc 8
- s390x 8
- mips64 5083
- mipsn32 6083
- mipso32 4008
- m68k 8
- microblaze 8
- parisc 8
- sh 8
- sparc 8
- sparc64 8
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/creat