![]() | |||||||||||
Messages in this thread
Patch in this message |
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 <nigel@suspend2.net>
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
| ||||||||||
| Last update: 2006-06-27 06:54 [from the cache] ©2003-2008 | |||||||||||