fchmodat on loongarch64
change permissions of a file
sys_fchmodat(int dfd, const char *filename, umode_t mode)
| number | 53 (0x35) |
|---|---|
| abi | common |
| entry point | sys_fchmodat |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| man page | fchmodat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 53, the syscall number |
a0 | int dfd |
a1 | const char *filename |
a2 | umode_t mode |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 268
- x86 306
- arm64 53
- arm 333
- riscv64 53
- ia32 306
- x32 1073742092
- ppc64 297
- ppc 297
- s390x 299
- mips64 5258
- mipsn32 6262
- mipso32 4299
- alpha 461
- arc 53
- blackfin 306, removed in 4.17
- cris 306, removed in 4.17
- csky 53
- frv 306, removed in 4.17
- hexagon 53
- ia64 1292, removed in 6.7
- m32r 306, removed in 4.17
- m68k 299
- metag 53, removed in 4.17
- microblaze 306
- mn10300 307, removed in 4.17
- nds32 53, removed in 5.18
- nios2 53
- openrisc 53
- parisc 286
- score 53, removed in 4.17
- sh 306
- sparc 295
- sparc64 295
- tilegx 53, removed in 4.17
- tilepro 53, removed in 4.17
- xtensa 300
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/fchmodat