syscall.sh / x32 / swapon

swapon

start/stop swapping to file/device

sys_swapon(const char *specialfile, int swap_flags)
number1073741991 (0x400000a7)
abicommon
entry pointsys_swapon
sinceLinux 3.4
man pageswapon(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741991, the syscall number
rdiconst char *specialfile
rsiint swap_flags
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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