[Suspend2][ 11/13] [Suspend2] Compression proc entry data.

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


This patch adds the suspend_proc_data structure that allows the user to
configure compression support.

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

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

diff --git a/kernel/power/compression.c b/kernel/power/compression.c
index 924d507..54d54a9 100644
--- a/kernel/power/compression.c
+++ b/kernel/power/compression.c
@@ -477,3 +477,46 @@ int suspend_expected_compression_ratio(v
return 100 - suspend_expected_compression;
}

+/*
+ * data for our proc entries.
+ */
+static struct suspend_proc_data proc_params[] = {
+{
+ .filename = "expected_compression",
+ .permissions = PROC_RW,
+ .type = SUSPEND_PROC_DATA_INTEGER,
+ .data = {
+ .integer = {
+ .variable = &suspend_expected_compression,
+ .minimum = 0,
+ .maximum = 99,
+ }
+ }
+},
+
+{
+ .filename = "disable_compression",
+ .permissions = PROC_RW,
+ .type = SUSPEND_PROC_DATA_INTEGER,
+ .data = {
+ .integer = {
+ .variable = &suspend_compression_ops.disabled,
+ .minimum = 0,
+ .maximum = 1,
+ }
+ }
+},
+
+{
+ .filename = "compressor",
+ .permissions = PROC_RW,
+ .type = SUSPEND_PROC_DATA_STRING,
+ .data = {
+ .string = {
+ .variable = suspend_compressor_name,
+ .max_length = 31,
+ }
+ },
+}
+};
+

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