syscall.sh / x86 / mknodat
mknodat
create a special or ordinary file
sys_mknodat(int dfd, const char *filename, umode_t mode, unsigned dev)
| number | 297 (0x129) |
|---|---|
| abi | i386 |
| entry point | sys_mknodat |
| since | Linux 3.3 |
| man page | mknodat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 297, the syscall number |
ebx | int dfd |
ecx | const char *filename |
edx | umode_t mode |
esi | unsigned dev |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 259
- arm64 33
- arm 324
- riscv64 33
- x32 1073742083
- loongarch64 33
- ppc64 288
- ppc 288
- s390x 290
- mips64 5249
- mipsn32 6253
- mipso32 4290
- alpha 452
- arc 33
- csky 33
- hexagon 33
- m68k 290
- microblaze 297
- nios2 33
- openrisc 33
- parisc 277
- sh 297
- sparc 286
- sparc64 286
- xtensa 290
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/mknodat