* document open(/dev/snapshot) sideeffects -- was Re: [linux-pm] syncing the disks when entering sleep [not found] ` <201001281143.08993.rjw@sisk.pl> @ 2010-04-05 6:38 ` Pavel Machek 2010-04-23 18:28 ` Rafael J. Wysocki 0 siblings, 1 reply; 3+ messages in thread From: Pavel Machek @ 2010-04-05 6:38 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: Leisner, Martin, linux-pm, Andrew Morton, kernel list Hi! > > > Please note that merely _opening_ /dev/snapshot has side effects, so that's > > > not just "three ioctls". > > > > I search Doc*/power/userland-swsusp.txt, and could not find mentions > > of sideeffects. Perhaps that should be fixed? > > Please feel free to make the docs more complete, then. Yes, something like this? Signed-off-by: Pavel Machek <pavel@ucw.cz> --- a/Documentation/power/userland-swsusp.txt +++ b/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 -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: document open(/dev/snapshot) sideeffects -- was Re: [linux-pm] syncing the disks when entering sleep 2010-04-05 6:38 ` document open(/dev/snapshot) sideeffects -- was Re: [linux-pm] syncing the disks when entering sleep Pavel Machek @ 2010-04-23 18:28 ` Rafael J. Wysocki 2010-04-24 5:42 ` Pavel Machek 0 siblings, 1 reply; 3+ messages in thread From: Rafael J. Wysocki @ 2010-04-23 18:28 UTC (permalink / raw) To: Pavel Machek; +Cc: Leisner, Martin, linux-pm, Andrew Morton, kernel list On Monday 05 April 2010, Pavel Machek wrote: > Hi! > > > > > Please note that merely _opening_ /dev/snapshot has side effects, so that's > > > > not just "three ioctls". > > > > > > I search Doc*/power/userland-swsusp.txt, and could not find mentions > > > of sideeffects. Perhaps that should be fixed? > > > > Please feel free to make the docs more complete, then. > > Yes, something like this? Yes, looks reasonable. I've applied it to suspend-2.6/linux-next (added a changelog). Rafael > Signed-off-by: Pavel Machek <pavel@ucw.cz> > > --- a/Documentation/power/userland-swsusp.txt > +++ b/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 > > > > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: document open(/dev/snapshot) sideeffects -- was Re: [linux-pm] syncing the disks when entering sleep 2010-04-23 18:28 ` Rafael J. Wysocki @ 2010-04-24 5:42 ` Pavel Machek 0 siblings, 0 replies; 3+ messages in thread From: Pavel Machek @ 2010-04-24 5:42 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: Leisner, Martin, linux-pm, Andrew Morton, kernel list On Fri 2010-04-23 20:28:55, Rafael J. Wysocki wrote: > On Monday 05 April 2010, Pavel Machek wrote: > > Hi! > > > > > > > Please note that merely _opening_ /dev/snapshot has side effects, so that's > > > > > not just "three ioctls". > > > > > > > > I search Doc*/power/userland-swsusp.txt, and could not find mentions > > > > of sideeffects. Perhaps that should be fixed? > > > > > > Please feel free to make the docs more complete, then. > > > > Yes, something like this? > > Yes, looks reasonable. > > I've applied it to suspend-2.6/linux-next (added a changelog). Thanks! Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-24 5:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <76FA3B279DD9DA48896E2B404944957204E0B241@USA7061MS02.na.xerox.net>
[not found] ` <201001272150.05846.rjw@sisk.pl>
[not found] ` <20100128072658.GB25633@atrey.karlin.mff.cuni.cz>
[not found] ` <201001281143.08993.rjw@sisk.pl>
2010-04-05 6:38 ` document open(/dev/snapshot) sideeffects -- was Re: [linux-pm] syncing the disks when entering sleep Pavel Machek
2010-04-23 18:28 ` Rafael J. Wysocki
2010-04-24 5:42 ` Pavel Machek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®