mknod on score
create a special or ordinary file
sys_mknod(const char *filename, umode_t mode, unsigned dev)
| number | 1027 (0x403) |
|---|---|
| abi | common |
| entry point | sys_mknod |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | mknod(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1027, the syscall number |
r4 | const char *filename |
r5 | umode_t mode |
r6 | unsigned dev |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
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 133
- x86 14
- arm 14
- ia32 14
- x32 1073741957
- ppc64 14
- ppc 14
- s390x 14
- mips64 5131
- mipsn32 6131
- mipso32 4014
- alpha 14
- blackfin 14, removed in 4.17
- cris 14, removed in 4.17
- frv 14, removed in 4.17
- ia64 1037, removed in 6.7
- m32r 14, removed in 4.17
- m68k 14
- microblaze 14
- mn10300 14, removed in 4.17
- parisc 14
- sh 14
- sparc 14
- sparc64 14
- xtensa 36
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/mknod?kernel=all