mkdirat on loongarch64
create a directory
sys_mkdirat(int dfd, const char *pathname, umode_t mode)
| number | 34 (0x22) |
|---|---|
| abi | common |
| entry point | sys_mkdirat |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| man page | mkdirat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 34, the syscall number |
a0 | int dfd |
a1 | const char *pathname |
a2 | umode_t mode |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 258
- x86 296
- arm64 34
- arm 323
- riscv64 34
- ia32 296
- x32 1073742082
- ppc64 287
- ppc 287
- s390x 289
- mips64 5248
- mipsn32 6252
- mipso32 4289
- alpha 451
- arc 34
- blackfin 296, removed in 4.17
- cris 296, removed in 4.17
- csky 34
- frv 296, removed in 4.17
- hexagon 34
- ia64 1282, removed in 6.7
- m32r 296, removed in 4.17
- m68k 289
- metag 34, removed in 4.17
- microblaze 296
- mn10300 297, removed in 4.17
- nds32 34, removed in 5.18
- nios2 34
- openrisc 34
- parisc 276
- score 34, removed in 4.17
- sh 296
- sparc 285
- sparc64 285
- tilegx 34, removed in 4.17
- tilepro 34, removed in 4.17
- xtensa 289
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/mkdirat