syscall.sh / ppc64 / open
open
open and possibly create a file
sys_open(const char *filename, int flags, umode_t mode)
| number | 5 (0x5) |
|---|---|
| abi | common |
| entry point | sys_open |
| since | Linux 5.0 |
| man page | open(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 5, the syscall number |
r3 | const char *filename |
r4 | int flags |
r5 | umode_t mode |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x64 2
- x86 5
- arm 5
- x32 1073741826
- ppc 5
- s390x 5
- mips64 5002
- 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/ppc64/open