syscall.sh / x86 / swapoff
swapoff
start/stop swapping to file/device
sys_swapoff(const char *specialfile)
| number | 115 (0x73) |
|---|---|
| abi | i386 |
| entry point | sys_swapoff |
| since | Linux 3.3 |
| man page | swapoff(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 115, the syscall number |
ebx | const char *specialfile |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 168
- arm64 225
- arm 115
- riscv64 225
- x32 1073741992
- loongarch64 225
- ppc64 115
- ppc 115
- s390x 115
- mips64 5163
- mipsn32 6163
- mipso32 4115
- alpha 304
- arc 225
- csky 225
- hexagon 225
- m68k 115
- microblaze 115
- nios2 225
- openrisc 225
- parisc 115
- sh 115
- sparc 213
- sparc64 213
- xtensa 177
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/swapoff