Function report | 
Source Code:kernel\power\snapshot.c | 
Create Date:2022-07-28 10:01:31 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:prepare_image - Make room for loading hibernation image
Proto:static int prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct memory_bitmap * | new_bm | |
| struct memory_bitmap * | bm | 
| 2470 | Pointer to an auxiliary buffer (1 page) = NULL | 
| 2472 | nr_highmem = count_highmem_image_pages(bm) | 
| 2479 | duplicate_memory_bitmap(new_bm, bm) | 
| 2480 | memory_bm_free(bm, PG_UNSAFE_KEEP) | 
| 2481 | If nr_highmem > 0 Then | 
| 2482 | error = prepare_highmem_image(bm, & nr_highmem) | 
| 2496 | nr_pages = DIV_ROUND_UP(nr_pages, PBES_PER_LINKED_PAGE) | 
| 2499 | If Not lp Then | 
| 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 | If Not lp Then | 
| 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 | Return 0 | 
| 2527 | Free : | 
| 2529 | Return error | 
| Name | Describe | 
|---|---|
| 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  |