函数逻辑报告 |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-27 11:00:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:get_image_page - Allocate a page for a hibernation image
函数原型:static void *get_image_page(gfp_t gfp_mask, int safe_needed)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
gfp_t | gfp_mask | |
int | safe_needed |
160 | res等于get_zeroed_page(gfp_mask) |
161 | 如果safe_needed则当res且swsusp_page_is_free(virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(res))循环 |
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 | 如果res则 |
172 | 返回:res |
名称 | 描述 |
---|---|
__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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |