SWAPON(2) COMMAND REFERENCE SWAPON(2) NAME swapon - add a swap device for interleaved paging/swapping SYNOPSIS swapon(special) char *special; DESCRIPTION Swapon makes the block device special available to the system for allocation for paging and swapping. The names of potentially available devices are known to the system and defined at system configuration time. The size of the swap area on special is calculated at the time the device is first made available for swapping. DIAGNOSTICS Swapon will fail if one or more of the following are true: [ENOENT] Special does not exist. [ENOTDIR] A component of the path prefix of special is not a directory. [ENAMETOOLONG] The argument special is too long. [EACCES] Search permission is denied on a component of the path prefix of special. [ENOASCII] The pathname special contains a character with the high-order bit set. [ELOOP] Too many symbolic links were encountered in translating the pathname. [EFAULT] special points to an invalid address. [EIO] An I/O error occurred while reading from or writing to the file system. [ENOTBLK] Special is not a block device. [ENXIO] The major device number of special is out of range (this indicates no device driver exists for the associated hardware). [EBUSY] Swapping is already being done on the device. [ENODEV] The device is not in the swap table. RETURN VALUE Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to Printed 4/6/89 1
SWAPON(2) COMMAND REFERENCE SWAPON(2) indicate the error. CAVEATS There is no way to stop swapping on a disk so that the pack may be dismounted. SEE ALSO swapon(8) Printed 4/6/89 2
%%index%% na:288,110; sy:398,411; de:809,566; di:1375,1431; rv:2806,254;3420,26; ca:3446,168; se:3614,152; %%index%%000000000130