Messages in this thread Patch in this message |  | | | From | Nigel Cunningham <> | | Subject | [Suspend2][ 01/13] [Suspend2] Compression File Header | | Date | Tue, 27 Jun 2006 14:37:20 +1000 |
This is the header of the suspend2 modules that implements compression support, using cryptoapi.
Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
kernel/power/compression.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/kernel/power/compression.c b/kernel/power/compression.c new file mode 100644 index 0000000..72075d7 --- /dev/null +++ b/kernel/power/compression.c @@ -0,0 +1,41 @@ +/* + * kernel/power/compression.c + * + * Copyright (C) 2003-2006 Nigel Cunningham <nigel@suspend2.net> + * + * This file is released under the GPLv2. + * + * This file contains data compression routines for suspend, + * using cryptoapi. + * + */ + +#include <linux/suspend.h> +#include <linux/module.h> +#include <linux/highmem.h> +#include <linux/vmalloc.h> +#include <linux/crypto.h> + +#include "suspend2.h" +#include "modules.h" +#include "proc.h" +#include "suspend2_common.h" +#include "io.h" + +#define S2C_WRITE 0 +#define S2C_READ 1 + +static int suspend_expected_compression = 0; + +static struct suspend_module_ops suspend_compression_ops; +static struct suspend_module_ops *next_driver; + +static char suspend_compressor_name[32]; +static struct crypto_tfm *suspend_compressor_transform; + +static u8 *local_buffer = NULL; +static u8 *page_buffer = NULL; +static unsigned int bufofs; + +static int position = 0; + -- 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/
|  |