瀏覽代碼

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 <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Pavel Machek 15 年之前
父節點
當前提交
bc6a0cbd57
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Documentation/power/userland-swsusp.txt

+ 4 - 0
Documentation/power/userland-swsusp.txt

@@ -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