[Suspend2][ 19/21] [Suspend2] Operations for userspace interface module.

From: Nigel Cunningham
Date: Tue Jun 27 2006 - 00:46:41 EST


Declare the operations for the core to store our configuration information
in the image header and know how much memory is needed for work.

Signed-off-by: Nigel Cunningham <nigel@xxxxxxxxxxxx>

kernel/power/ui.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/kernel/power/ui.c b/kernel/power/ui.c
index 4955d5f..3f2f549 100644
--- a/kernel/power/ui.c
+++ b/kernel/power/ui.c
@@ -777,3 +777,14 @@ static struct suspend_proc_data proc_par
#endif
};

+static struct suspend_module_ops userui_ops = {
+ .type = MISC_MODULE,
+ .name = "Userspace UI Support",
+ .module = THIS_MODULE,
+#ifdef CONFIG_NET
+ .storage_needed = userui_storage_needed,
+ .save_config_info = userui_save_config_info,
+ .load_config_info = userui_load_config_info,
+ .memory_needed = userui_memory_needed,
+#endif
+};

--
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/