syscall.sh / x86 / swapon

swapon

start/stop swapping to file/device

sys_swapon(const char *specialfile, int swap_flags)
number87 (0x57)
abii386
entry pointsys_swapon
sinceLinux 3.3
man pageswapon(2)
sourceelixir.bootlin.com

Registers

registervalue
eax87, the syscall number
ebxconst char *specialfile
ecxint swap_flags
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/swapon