Hibernation: Introduce SNAPSHOT_GET_IMAGE_SIZE ioctl
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 25 Oct 2007 22:59:31 +0000 (00:59 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 1 Feb 2008 23:30:52 +0000 (18:30 -0500)
commitaf508b34d27e3341287d89e0eae6752fdb1b873f
treeb5d2a337d78dc25aadb02d481443d484e0dd368c
parentaa6299926950c8dfe2fea638276cad6def092bc9
Hibernation: Introduce SNAPSHOT_GET_IMAGE_SIZE ioctl

Add a new ioctl, SNAPSHOT_GET_IMAGE_SIZE, returning the size of the (just
created) hibernation image, to the hibernation userland interface.

This ioctl is necessary so that the userland utilities using the interface need
not access the hibernation image header, owned by the kernel, in order to obtain
the size of the image.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
Documentation/power/userland-swsusp.txt
kernel/power/power.h
kernel/power/snapshot.c
kernel/power/user.c