]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit37b2ba12df88f0e29f2d52aaf1ab22789377d5b5
tree38a05add5793bb82be9afdb9fa81d48ccf70da1f
parentecbd0da1eced957e0cbb611b4a4cb5b0cf63ba31
[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