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