Add the struct that lets the encryption functions be used by the core.
Signed-off-by: Nigel Cunningham <[email protected]>
kernel/power/encryption.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/kernel/power/encryption.c b/kernel/power/encryption.c
index 4e309e3..8f544ff 100644
--- a/kernel/power/encryption.c
+++ b/kernel/power/encryption.c
@@ -482,3 +482,24 @@ static struct suspend_proc_data proc_par
};
+/*
+ * Ops structure.
+ */
+
+static struct suspend_module_ops suspend_encryption_ops = {
+ .type = FILTER_MODULE,
+ .name = "Encryptor",
+ .module = THIS_MODULE,
+ .memory_needed = suspend_encrypt_memory_needed,
+ .print_debug_info = suspend_encrypt_print_debug_stats,
+ .save_config_info = suspend_encrypt_save_config_info,
+ .load_config_info = suspend_encrypt_load_config_info,
+ .storage_needed = suspend_encrypt_storage_needed,
+
+ .rw_init = suspend_encrypt_rw_init,
+ .rw_cleanup = suspend_encrypt_rw_cleanup,
+
+ .write_chunk = suspend_encrypt_write_chunk,
+ .read_chunk = suspend_encrypt_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 [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]