Go to the previous, next section.

swapoff and swapon

SYNOPSIS

int swapon(const char *path);

int swapoff(const char *path);

PARAMETERS

path: [in] points to the path to add/remove.

DESCRIPTION

swapon adds the swap area specified by path to the swap pool. swapoff removes the swap area specified by path from the swap pool. The calling task must have superuser privileges.

RETURN VALUE

On success zero is returned. On error -1 is returned and errno is set to one of the following:

Go to the previous, next section.