swapon on m32r
start/stop swapping to file/device
sys_swapon(const char *specialfile, int swap_flags)
| number | 87 (0x57) |
|---|---|
| abi | common |
| kconfig | CONFIG_SWAP |
| entry point | sys_swapon |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for m32r) |
| man page | swapon(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r7 | 87, the syscall number |
r0 | const char *specialfile |
r1 | int swap_flags |
r0 | the return value |
Then run trap #2 to enter the kernel.
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
- 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
- tilepro 224, removed in 4.17
- xtensa 173
Get this as JSON: https://api.syscall.sh/v2/syscalls/m32r/swapon?kernel=all