|
|
1.1 root 1: .\" Copyright (c) 1980 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted provided
5: .\" that: (1) source distributions retain this entire copyright notice and
6: .\" comment, and (2) distributions including binaries display the following
7: .\" acknowledgement: ``This product includes software developed by the
8: .\" University of California, Berkeley and its contributors'' in the
9: .\" documentation or other materials provided with the distribution and in
10: .\" all advertising materials mentioning features or use of this software.
11: .\" Neither the name of the University nor the names of its contributors may
12: .\" be used to endorse or promote products derived from this software without
13: .\" specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)swapon.2 6.6 (Berkeley) 6/23/90
19: .\"
20: .TH SWAPON 2 "June 23, 1990"
21: .UC 4
22: .SH NAME
23: swapon \- add a swap device for interleaved paging/swapping
24: .SH SYNOPSIS
25: .nf
26: .B swapon(special)
27: .B char *special;
28: .fi
29: .SH DESCRIPTION
30: .I Swapon
31: makes the block device
32: .I special
33: available to the system for
34: allocation for paging and swapping. The names of potentially
35: available devices are known to the system and defined at system
36: configuration time. The size of the swap area on
37: .I special
38: is calculated at the time the device is first made available
39: for swapping.
40: .SH "RETURN VALUE
41: If an error has occurred, a value of \-1 is returned and
42: .I errno
43: is set to indicate the error.
44: .SH ERRORS
45: .I Swapon
46: succeeds unless:
47: .TP 15
48: [ENOTDIR]
49: A component of the path prefix is not a directory.
50: .TP 15
51: [EINVAL]
52: The pathname contains a character with the high-order bit set.
53: .TP 15
54: [ENAMETOOLONG]
55: A component of a pathname exceeded 255 characters,
56: or an entire path name exceeded 1023 characters.
57: .TP 15
58: [ENOENT]
59: The named device does not exist.
60: .TP 15
61: [EACCES]
62: Search permission is denied for a component of the path prefix.
63: .TP 15
64: [ELOOP]
65: Too many symbolic links were encountered in translating the pathname.
66: .TP 15
67: [EPERM]
68: The caller is not the super-user.
69: .TP 15
70: [ENOTBLK]
71: .I Special
72: is not a block device.
73: .TP 15
74: [EBUSY]
75: The device specified by \fIspecial\fP has already
76: been made available for swapping
77: .TP 15
78: [EINVAL]
79: The device configured by \fIspecial\fP was not
80: configured into the system as a swap device.
81: .TP 15
82: [ENXIO]
83: The major device number of
84: .I special
85: is out of range (this indicates no device driver exists
86: for the associated hardware).
87: .TP 15
88: [EIO]
89: An I/O error occurred while opening the swap device.
90: .TP 15
91: [EFAULT]
92: .I Special
93: points outside the process's allocated address space.
94: .SH "SEE ALSO"
95: swapon(8), config(8)
96: .SH BUGS
97: There is no way to stop swapping on a disk so that the pack may be
98: dismounted.
99: .PP
100: This call will be upgraded in future versions of the system.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.