]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] swsusp: add ioctl for swap files support
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 7 Dec 2006 04:34:15 +0000 (20:34 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:27 +0000 (08:39 -0800)
commit811307a2515a15e9c81469c44dc5976cebb97126
tree38a05add5793bb82be9afdb9fa81d48ccf70da1f
parenta55e254603709e3c4386237796e30c6d715e24fb
[PATCH] swsusp: add ioctl for swap files support

To be able to use swap files as suspend storage from the userland suspend
tools we need an additional ioctl() that will allow us to provide the kernel
with both the swap header's offset and the identification of the resume
partition.

The new ioctl() should be regarded as a replacement for the
SNAPSHOT_SET_SWAP_FILE ioctl() that from now on will be considered as
obsolete, but has to stay for backwards compatibility of the interface.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/power.h
kernel/power/user.c