Skip to content

Commit bc6a0cb

Browse files
pavelmachekrjwysocki
authored andcommitted
PM / Hibernate: document open(/dev/snapshot) side effects
Opening and closing /dev/snapshot causes the kernel to carry out some hibernate preparations that should be documented. [rjw: Added the changelog.] Signed-off-by: Pavel Machek <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent c92445f commit bc6a0cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/power/userland-swsusp.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ assumed to be in the resume mode. The device cannot be open for simultaneous
2424
reading and writing. It is also impossible to have the device open more than
2525
once at a time.
2626

27+
Even opening the device has side effects. Data structures are
28+
allocated, and PM_HIBERNATION_PREPARE / PM_RESTORE_PREPARE chains are
29+
called.
30+
2731
The ioctl() commands recognized by the device are:
2832

2933
SNAPSHOT_FREEZE - freeze user space processes (the current process is

0 commit comments

Comments
 (0)