syscall.sh / parisc / swapon
swapon
start/stop swapping to file/device
sys_swapon(const char *specialfile, int swap_flags)
| number | 87 (0x57) |
|---|---|
| abi | common |
| entry point | sys_swapon |
| since | Linux 5.0 |
| man page | swapon(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 87, the syscall number |
r26 | const char *specialfile |
r25 | int swap_flags |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 167
- x86 87
- arm64 224
- arm 87
- riscv64 224
- x32 1073741991
- loongarch64 224
- ppc64 87
- ppc 87
- s390x 87
- mips64 5162
- mipsn32 6162
- mipso32 4087
- alpha 322
- arc 224
- csky 224
- hexagon 224
- m68k 87
- microblaze 87
- nios2 224
- openrisc 224
- sh 87
- sparc 85
- sparc64 85
- xtensa 173
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/swapon