sys_swapoff  [mm/swapfile.c]


Stops swapping to the file or block device.

Arguments

eax 115
ebx Pointer to a null-terminated string specifying the pathname currently used for swapping.

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EINVAL The file pointed by ebx exists, but refers neither to a regular file nor to a block device.
-or-
The file pointed by ebx is not currently a swap area.
-ENFILE The system limit on the total number of open files has been reached.
-ENOENT The file pointed by ebx does not exist.
-ENOMEM The system has insufficient memory to start swapping.
-EPERM The caller does not have the CAP_SYS_ADMIN capability, or all MAX_SWAPFILES are in use.

Remarks

n/a

Compatibility

n/a