syscall.sh / s390x / swapon

swapon

start/stop swapping to file/device

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

Registers

registervalue
r187, the syscall number
r2const char *specialfile
r3int swap_flags
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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