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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

 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 [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]
  Powered by Linux