open on cris
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 3.3 or earlier (3.3 is the first release scanned for cris) |
| man page | open(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r9 | 5, the syscall number |
r10 | const char *filename |
r11 | int flags |
r12 | umode_t mode |
r10 | the return value |
Then run break 13 to enter the kernel.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 2
- x86 5
- arm 5
- ia32 5
- x32 1073741826
- ppc64 5
- ppc 5
- s390x 5
- mips64 5002
- mipsn32 6002
- mipso32 4005
- alpha 45
- blackfin 5, removed in 4.17
- frv 5, removed in 4.17
- ia64 1028, removed in 6.7
- m32r 5, removed in 4.17
- m68k 5
- microblaze 5
- mn10300 5, removed in 4.17
- parisc 5
- score 1024, removed in 4.17
- sh 5
- sparc 5
- sparc64 5
- xtensa 8
Get this as JSON: https://api.syscall.sh/v2/syscalls/cris/open?kernel=all