Skip to content

Commit

Permalink
PM / Hibernate: document open(/dev/snapshot) side effects
Browse files Browse the repository at this point in the history
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 <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Pavel Machek authored and Rafael J. Wysocki committed May 10, 2010
1 parent c92445f commit bc6a0cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/power/userland-swsusp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ assumed to be in the resume mode. The device cannot be open for simultaneous
reading and writing. It is also impossible to have the device open more than
once at a time.

Even opening the device has side effects. Data structures are
allocated, and PM_HIBERNATION_PREPARE / PM_RESTORE_PREPARE chains are
called.

The ioctl() commands recognized by the device are:

SNAPSHOT_FREEZE - freeze user space processes (the current process is
Expand Down

0 comments on commit bc6a0cb

Please sign in to comment.