syscall.sh / csky / swapon

swapon

start/stop swapping to file/device

sys_swapon(const char *specialfile, int swap_flags)
number224 (0xe0)
abicommon
entry pointsys_swapon
sinceLinux 4.20
man pageswapon(2)
sourceelixir.bootlin.com

Registers

registervalue
r7224, the syscall number
a0const char *specialfile
a1int swap_flags
a0the return value

Then run trap 0 to enter the kernel.

Same syscall on other architectures

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