syscall.sh / nios2 / swapon

swapon

start/stop swapping to file/device

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

Registers

registervalue
r2224, the syscall number
r4const char *specialfile
r5int swap_flags
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

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