Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:01:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:snapshot_read_next - Get the address to read the next image page from.*@handle: Snapshot handle to be used for the reading.* On the first call, @handle should point to a zeroed snapshot_handle* structure
Proto:int snapshot_read_next(struct snapshot_handle *handle)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct snapshot_handle * | handle |
2100 | If Not Pointer to an auxiliary buffer (1 page) Then |
2102 | Pointer to an auxiliary buffer (1 page) = get_image_page - Allocate a page for a hibernation image |
2103 | If Not Pointer to an auxiliary buffer (1 page) Then Return -ENOMEM |
2109 | error = init_header((structswsusp_info * )Pointer to an auxiliary buffer (1 page) ) |
2118 | Else |
2122 | If PageHighMem(page) Then |
2130 | kaddr = kmap_atomic(page) |
2134 | Else |
2139 | Return PAGE_SIZE |
Name | Describe |
---|---|
save_image | save_image - save the suspend image data |
save_image_lzo | save_image_lzo - Save the suspend image data compressed with LZO.*@handle: Swap map handle to use for saving the image.*@snapshot: Image to read data from.*@nr_to_write: Number of pages to save. |
swsusp_write | swsusp_write - Write entire image and metadata.*@flags: flags to pass to the "boot" kernel in the image header* It is important _NOT_ to umount filesystems at this point. We want* them synced (in case something goes wrong) but we DO not want to mark |
snapshot_read |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |