OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man2 / swapon.2
index b933608..93ee1cd 100644 (file)
@@ -34,7 +34,7 @@
 .\" 2007-06-22 Ivana Varekova <varekova@redhat.com>, mtk
 .\"     Update text describing limit on number of swap files.
 .\"
-.TH SWAPON 2 2010-11-15 "Linux" "Linux Programmer's Manual"
+.TH SWAPON 2 2014-02-26 "Linux" "Linux Programmer's Manual"
 .SH NAME
 swapon, swapoff \- start/stop swapping to file/device
 .SH SYNOPSIS
@@ -123,11 +123,19 @@ is already being used as a swap area.
 The file
 .I path
 exists, but refers neither to a regular file nor to a block device;
-or, for
-.BR swapon (),
-the indicated path does not contain a valid swap signature or
-resides on an in-memory file system like tmpfs; or, for
-.BR swapoff (),
+.TP
+.B EINVAL
+.RB ( swapon ())
+The indicated path does not contain a valid swap signature or
+resides on an in-memory filesystem such as tmpfs.
+.TP
+.BR EINVAL " (since Linux 3.4)"
+.RB ( swapon ())
+An invalid flag value was specified in
+.IR flags .
+.TP
+.B EINVAL
+.RB ( swapoff ())
 .I path
 is not currently a swap area.
 .TP
@@ -192,3 +200,11 @@ is called, even if that flag bit is not set.
 .BR mkswap (8),
 .BR swapoff (8),
 .BR swapon (8)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.