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
Printed 10/17/86 1
SWAPON(2) COMMAND REFERENCE SWAPON(2)
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.
[EDFSREF]
Special is a reference to a remote device and this
system call does not support that capability.
RETURN VALUE
Upon successful completion, a value of 0 is returned.
Otherwise, a value of -1 is returned and errno is set to
indicate the error.
CAVEATS
There is no way to stop swapping on a disk so that the pack
may be dismounted.
SEE ALSO
config(8), swapon(8).
Printed 10/17/86 2
%%index%%
na:72,94;
sy:166,267;
de:433,498;
di:931,1113;2188,358;
rv:2546,236;
ca:2782,140;
se:2922,134;
%%index%%000000000128