Return the amount of space needed in the image header for userui settings.
This is currently just the name of the program we're running.
Signed-off-by: Nigel Cunningham <[email protected]>
kernel/power/ui.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/kernel/power/ui.c b/kernel/power/ui.c
index 48719de..21c6be7 100644
--- a/kernel/power/ui.c
+++ b/kernel/power/ui.c
@@ -176,3 +176,8 @@ static int userui_user_rcv_msg(struct sk
return 1;
}
+static unsigned long userui_storage_needed(void)
+{
+ return sizeof(ui_helper_data.program) + 1 + sizeof(int);
+}
+
--
Nigel Cunningham nigel at suspend2 dot net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]