函数逻辑报告 | 
Source Code:kernel\power\snapshot.c | 
Create Date:2022-07-27 11:01:37 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:prepare_image - Make room for loading hibernation image
函数原型:static int prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct memory_bitmap * | new_bm | |
| struct memory_bitmap * | bm | 
| 2470 | Pointer to an auxiliary buffer (1 page) = NULL | 
| 2479 | duplicate_memory_bitmap(new_bm, bm) | 
| 2480 | memory_bm_free(bm, PG_UNSAFE_KEEP) | 
| 2481 | 如果nr_highmem大于0则 | 
| 2482 | error等于prepare_highmem_image(bm, & nr_highmem) | 
| 2499 | 如果非lp则 | 
| 2503 | next等于List of "safe" pages (ie. pages that were not used by the image kernel* before hibernation) that may be used as temporary storage for image kernel* memory contents. | 
| 2504 | List of "safe" pages (ie. pages that were not used by the image kernel* before hibernation) that may be used as temporary storage for image kernel* memory contents.等于lp | 
| 2505 | nr_pages自减 | 
| 2511 | 如果非lp则 | 
| 2521 | swsusp_set_page_forbidden(virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(lp)) | 
| 2523 | nr_pages自减 | 
| 2525 | 返回:0 | 
| 2527 | Free : | 
| 2529 | 返回:error | 
| 名称 | 描述 | 
|---|---|
| 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 插件可实现:逻辑报告 代码生成和批量转换代码  |