swapon on tilepro
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.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | swapon(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 224, the syscall number |
r0 | const char *specialfile |
r1 | int swap_flags |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error for ordinary calls.
Fast atomic calls use negative numbers and have different register behavior.
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
- metag 224, removed in 4.17
- 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
- xtensa 173
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/swapon?kernel=all