Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:00:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_image_page - Allocate a page for a hibernation image
Proto:static void *get_image_page(gfp_t gfp_mask, int safe_needed)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
gfp_t | gfp_mask | |
int | safe_needed |
160 | res = get_zeroed_page(gfp_mask) |
161 | If safe_needed Then When res && swsusp_page_is_free(virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(res)) cycle |
164 | swsusp_set_page_forbidden(virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(res)) |
165 | allocated_unsafe_pages++ |
166 | res = get_zeroed_page(gfp_mask) |
168 | If res Then |
172 | Return res |
Name | Describe |
---|---|
__get_safe_page | |
chain_alloc | |
alloc_rtree_node | alloc_rtree_node - Allocate a new node and add it to the radix tree.* This function is used to allocate inner nodes as well as the* leave nodes of the radix tree. It also adds the node to the* corresponding linked list passed in by the *list parameter. |
snapshot_read_next | 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 |
prepare_image | prepare_image - Make room for loading hibernation image |
snapshot_write_next | 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 |
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 |