lkml.org 
[lkml]   [2006]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[Suspend2][ 18/35] [Suspend2] Header reading initialisation specific to files.
Date
Initialisation specific to files (as opposed to reading from an initrd).

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>

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

diff --git a/kernel/power/suspend_file.c b/kernel/power/suspend_file.c
index 6f298fc..1dd082f 100644
--- a/kernel/power/suspend_file.c
+++ b/kernel/power/suspend_file.c
@@ -582,3 +582,15 @@ out:
return -EIO;
}

+static int file_init(void)
+{
+ suspend_writer_buffer_posn = 0;
+
+ /* Read filewriter configuration */
+ suspend_bio_ops.bdev_page_io(READ, filewriter_target_bdev,
+ target_header_start,
+ virt_to_page((unsigned long) suspend_writer_buffer));
+
+ return 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/

\
 
 \ /
  Last update: 2006-06-27 00:43    [W:0.148 / U:0.064 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site