Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:01:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:snapshot_write_next - Get the address to store the next image page.*@handle: Snapshot handle structure to guide the writing.* On the first call, @handle should point to a zeroed snapshot_handle* structure
Proto:int snapshot_write_next(struct snapshot_handle *handle)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct snapshot_handle * | handle |
2594 | error = 0 |
2603 | If Not Pointer to an auxiliary buffer (1 page) Then Pointer to an auxiliary buffer (1 page) = get_image_page - Allocate a page for a hibernation image |
2607 | If Not Pointer to an auxiliary buffer (1 page) Then Return -ENOMEM |
2611 | Else if umber of the block of PAGE_SIZE bytes the* next operation will refer to (ie. current) == 1 Then |
2639 | memory_bm_position_reset( & Memory bitmap used for marking saveable pages (during hibernation) or* hibernation image pages (during restore)) |
2646 | Else |
2647 | copy_last_highmem_page() |
2658 | Return PAGE_SIZE |
Name | Describe |
---|---|
load_image | load_image - load the image using the swap map handle*@handle and the snapshot handle @snapshot* (assume there are @nr_pages pages to load) |
load_image_lzo | load_image_lzo - Load compressed image data and decompress them with LZO.*@handle: Swap map handle to use for loading data.*@snapshot: Image to copy uncompressed data into.*@nr_to_read: Number of pages to load. |
swsusp_read | swsusp_read - read the hibernation image.*@flags_p: flags passed by the "frozen" kernel in the image header should* be written into this memory location |
snapshot_write |
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 |