[Suspend2][ 12/13] [Suspend2] Compression operations structure.

From: Nigel Cunningham
Date: Tue Jun 27 2006 - 01:01:29 EST


Add the compression ops structure, which provides the core (or previous
module in the pipeline) with access to the compression functions.

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

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

diff --git a/kernel/power/compression.c b/kernel/power/compression.c
index 54d54a9..4f0f82e 100644
--- a/kernel/power/compression.c
+++ b/kernel/power/compression.c
@@ -520,3 +520,23 @@ static struct suspend_proc_data proc_par
}
};

+/*
+ * Ops structure.
+ */
+static struct suspend_module_ops suspend_compression_ops = {
+ .type = FILTER_MODULE,
+ .name = "Suspend2 Compressor",
+ .module = THIS_MODULE,
+ .memory_needed = suspend_compress_memory_needed,
+ .print_debug_info = suspend_compress_print_debug_stats,
+ .save_config_info = suspend_compress_save_config_info,
+ .load_config_info = suspend_compress_load_config_info,
+ .storage_needed = suspend_compress_storage_needed,
+
+ .rw_init = suspend_compress_rw_init,
+ .rw_cleanup = suspend_compress_rw_cleanup,
+
+ .write_chunk = suspend_compress_write_chunk,
+ .read_chunk = suspend_compress_read_chunk,
+};
+

--
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/