aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/power/userland-swsusp.txt
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2007-10-25 19:05:05 -0400
committerLen Brown <len.brown@intel.com>2008-02-01 18:30:53 -0500
commit3010f8caa48ed38679cc32b0d8e84b82cb8d9980 (patch)
treeb25311fd5c66e2e1f392194089635c4c2fec557e /Documentation/power/userland-swsusp.txt
parentcc5d207c85b9a6fafebe2856ead0a9360978c8cd (diff)
Hibernation: Introduce exportable suspend ioctls header (rev. 2)
Move the definitions of hibernation ioctls to a separate header file in include/linux, which can be exported to the user space. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'Documentation/power/userland-swsusp.txt')
-rw-r--r--Documentation/power/userland-swsusp.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/power/userland-swsusp.txt b/Documentation/power/userland-swsusp.txt
index af52d535a896..7b99636564c8 100644
--- a/Documentation/power/userland-swsusp.txt
+++ b/Documentation/power/userland-swsusp.txt
@@ -14,7 +14,7 @@ are going to develop your own suspend/resume utilities.
14 14
15The interface consists of a character device providing the open(), 15The interface consists of a character device providing the open(),
16release(), read(), and write() operations as well as several ioctl() 16release(), read(), and write() operations as well as several ioctl()
17commands defined in kernel/power/power.h. The major and minor 17commands defined in include/linux/suspend_ioctls.h . The major and minor
18numbers of the device are, respectively, 10 and 231, and they can 18numbers of the device are, respectively, 10 and 231, and they can
19be read from /sys/class/misc/snapshot/dev. 19be read from /sys/class/misc/snapshot/dev.
20 20
@@ -70,10 +70,10 @@ SNAPSHOT_FREE_SWAP_PAGES - free all swap pages allocated by
70SNAPSHOT_SET_SWAP_AREA - set the resume partition and the offset (in <PAGE_SIZE> 70SNAPSHOT_SET_SWAP_AREA - set the resume partition and the offset (in <PAGE_SIZE>
71 units) from the beginning of the partition at which the swap header is 71 units) from the beginning of the partition at which the swap header is
72 located (the last ioctl() argument should point to a struct 72 located (the last ioctl() argument should point to a struct
73 resume_swap_area, as defined in kernel/power/power.h, containing the 73 resume_swap_area, as defined in kernel/power/suspend_ioctls.h,
74 resume device specification and the offset); for swap partitions the 74 containing the resume device specification and the offset); for swap
75 offset is always 0, but it is different from zero for swap files (see 75 partitions the offset is always 0, but it is different from zero for
76 Documentation/swsusp-and-swap-files.txt for details). 76 swap files (see Documentation/swsusp-and-swap-files.txt for details).
77 77
78SNAPSHOT_PLATFORM_SUPPORT - enable/disable the hibernation platform support, 78SNAPSHOT_PLATFORM_SUPPORT - enable/disable the hibernation platform support,
79 depending on the argument value (enable, if the argument is nonzero) 79 depending on the argument value (enable, if the argument is nonzero)