swapon on metag
start/stop swapping to file/device
sys_swapon(const char *specialfile, int swap_flags)
| number | 224 (0xe0) |
|---|---|
| abi | common |
| kconfig | CONFIG_SWAP |
| entry point | sys_swapon |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | swapon(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 224, the syscall number |
D1Ar1 | const char *specialfile |
D0Ar2 | int swap_flags |
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 167
- x86 87
- arm64 224
- arm 87
- riscv64 224
- ia32 87
- x32 1073741991
- loongarch64 224
- ppc64 87
- ppc 87
- s390x 87
- mips64 5162
- mipsn32 6162
- mipso32 4087
- alpha 322
- arc 224
- cris 87, removed in 4.17
- csky 224
- frv 87, removed in 4.17
- hexagon 224
- ia64 1094, removed in 6.7
- m32r 87, removed in 4.17
- m68k 87
- microblaze 87
- mn10300 87, removed in 4.17
- nds32 224, removed in 5.18
- nios2 224
- openrisc 224
- parisc 87
- score 224, removed in 4.17
- sh 87
- sparc 85
- sparc64 85
- tilegx 224, removed in 4.17
- tilepro 224, removed in 4.17
- xtensa 173
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/swapon?kernel=all