1 2 3 4 5 6 7
#include <sys/swap.h> #include "syscall.h" int swapon(const char *path, int flags) { return syscall2(__NR_swapon, (long)path, flags); }