aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/power/swsusp-and-swap-files.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/power/swsusp-and-swap-files.txt')
-rw-r--r--Documentation/power/swsusp-and-swap-files.txt18
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
39where <swap_file_partition> is the partition on which the swap file is located 39where <swap_file_partition> is the partition on which the swap file is located
40and <swap_file_offset> is the offset of the swap header determined by the 40and <swap_file_offset> is the offset of the swap header determined by the
41application in 2). [Of course, this step may be carried out automatically 41application in 2) (of course, this step may be carried out automatically
42by the same application that determies the swap file's header offset using the 42by the same application that determies the swap file's header offset using the
43FIBMAP ioctl.] 43FIBMAP ioctl)
44
45OR
46
47Use a userland suspend application that will set the partition and offset
48with the help of the SNAPSHOT_SET_SWAP_AREA ioctl described in
49Documentation/power/userland-swsusp.txt (this is the only method to suspend
50to a swap file allowing the resume to be initiated from an initrd or initramfs
51image).
44 52
45Now, swsusp will use the swap file in the same way in which it would use a swap 53Now, swsusp will use the swap file in the same way in which it would use a swap
46partition. [Of course this means that the resume from a swap file cannot be 54partition. In particular, the swap file has to be active (ie. be present in
47initiated from whithin an initrd of initramfs image.] In particular, the 55/proc/swaps) so that it can be used for suspending.
48swap file has to be active (ie. be present in /proc/swaps) so that it can be
49used for suspending.
50 56
51Note that if the swap file used for suspending is deleted and recreated, 57Note that if the swap file used for suspending is deleted and recreated,
52the location of its header need not be the same as before. Thus every time 58the location of its header need not be the same as before. Thus every time