fchmodat on metag
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 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | fchmodat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 53, the syscall number |
D1Ar1 | int dfd |
D0Ar2 | const char *filename |
D1Ar3 | umode_t mode |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
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 268
- x86 306
- arm64 53
- arm 333
- riscv64 53
- ia32 306
- x32 1073742092
- loongarch64 53
- 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
- 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/metag/fchmodat?kernel=all