syscall.sh / mips64 / open
open
open and possibly create a file
sys_open(const char *filename, int flags, umode_t mode)
| number | 5002 (0x138a) |
|---|---|
| abi | n64 |
| entry point | sys_open |
| since | Linux 5.0 |
| man page | open(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 5002, the syscall number |
a0 | const char *filename |
a1 | int flags |
a2 | umode_t mode |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 2
- x86 5
- arm 5
- x32 1073741826
- ppc64 5
- ppc 5
- s390x 5
- mipsn32 6002
- mipso32 4005
- alpha 45
- m68k 5
- microblaze 5
- parisc 5
- sh 5
- sparc 5
- sparc64 5
- xtensa 8
Get this as JSON: https://api.syscall.sh/v2/syscalls/mips64/open