syscall.sh / hexagon / swapon

swapon

start/stop swapping to file/device

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

Registers

registervalue
r6224, the syscall number
r0const char *specialfile
r1int swap_flags
r0the return value

Then run trap0(#1) to enter the kernel.

Same syscall on other architectures

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