diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2006-12-06 23:34:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:27 -0500 |
commit | bf73bae6ba0dc4bd4f1e570feb34a06b72725af6 (patch) | |
tree | 3d224f68d04b6c9e96ebf5903406ada9307824d9 /Documentation/power/swsusp-and-swap-files.txt | |
parent | 37b2ba12df88f0e29f2d52aaf1ab22789377d5b5 (diff) |
[PATCH] swsusp: update userland interface documentation
The swsusp userland interface has recently changed for a couple of times, but
the changes have not been documented. Fix this, and document the
SNAPSHOT_SET_SWAP_AREA ioctl().
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/power/swsusp-and-swap-files.txt')
-rw-r--r-- | Documentation/power/swsusp-and-swap-files.txt | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Documentation/power/swsusp-and-swap-files.txt b/Documentation/power/swsusp-and-swap-files.txt index e171d11dc656..06f911a5f885 100644 --- a/Documentation/power/swsusp-and-swap-files.txt +++ b/Documentation/power/swsusp-and-swap-files.txt | |||
@@ -38,15 +38,21 @@ resume=<swap_file_partition> resume_offset=<swap_file_offset> | |||
38 | 38 | ||
39 | where <swap_file_partition> is the partition on which the swap file is located | 39 | where <swap_file_partition> is the partition on which the swap file is located |
40 | and <swap_file_offset> is the offset of the swap header determined by the | 40 | and <swap_file_offset> is the offset of the swap header determined by the |
41 | application in 2). [Of course, this step may be carried out automatically | 41 | application in 2) (of course, this step may be carried out automatically |
42 | by the same application that determies the swap file's header offset using the | 42 | by the same application that determies the swap file's header offset using the |
43 | FIBMAP ioctl.] | 43 | FIBMAP ioctl) |
44 | |||
45 | OR | ||
46 | |||
47 | Use a userland suspend application that will set the partition and offset | ||
48 | with the help of the SNAPSHOT_SET_SWAP_AREA ioctl described in | ||
49 | Documentation/power/userland-swsusp.txt (this is the only method to suspend | ||
50 | to a swap file allowing the resume to be initiated from an initrd or initramfs | ||
51 | image). | ||
44 | 52 | ||
45 | Now, swsusp will use the swap file in the same way in which it would use a swap | 53 | Now, swsusp will use the swap file in the same way in which it would use a swap |
46 | partition. [Of course this means that the resume from a swap file cannot be | 54 | partition. In particular, the swap file has to be active (ie. be present in |
47 | initiated from whithin an initrd of initramfs image.] In particular, the | 55 | /proc/swaps) so that it can be used for suspending. |
48 | swap file has to be active (ie. be present in /proc/swaps) so that it can be | ||
49 | used for suspending. | ||
50 | 56 | ||
51 | Note that if the swap file used for suspending is deleted and recreated, | 57 | Note that if the swap file used for suspending is deleted and recreated, |
52 | the location of its header need not be the same as before. Thus every time | 58 | the location of its header need not be the same as before. Thus every time |