syscall.sh / xtensa / swapon

swapon

start/stop swapping to file/device

sys_swapon(const char *specialfile, int swap_flags)
number173 (0xad)
abicommon
entry pointsys_swapon
sinceLinux 5.0
man pageswapon(2)
sourceelixir.bootlin.com

Registers

registervalue
a2173, the syscall number
a6const char *specialfile
a3int swap_flags
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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