Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:01:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swsusp_free - Free pages allocated for hibernation image.* Image pages are alocated before snapshot creation, so they need to be* released after resume.
Proto:void swsusp_free(void)
Type:void
Parameter:Nothing
| 1472 | memory_bm_position_reset(Set bits in this map correspond to the page frames the contents of which* should not be saved during the suspend.) |
| 1475 | loop : |
| 1483 | Do |
| 1490 | If fr_pfn != Data types related to memory bitmaps && pfn_valid(fr_pfn) Then |
| 1491 | page = pfn_to_page(fr_pfn) |
| 1493 | memory_bm_clear_current(Set bits in this map correspond to the page frames the contents of which* should not be saved during the suspend.) |
| 1496 | __free_page(page) |
| 1497 | Go to loop |
| 1500 | out : |
| 1501 | Total number of image pages = 0 |
| 1504 | Pointer to an auxiliary buffer (1 page) = NULL |
| Name | Describe |
|---|---|
| hibernation_snapshot | hibernation_snapshot - Quiesce devices and create a hibernation image.*@platform_mode: If set, use platform driver to prepare for the transition.* This routine must be called with system_transition_mutex held. |
| resume_target_kernel | sume_target_kernel - Restore system state from a hibernation image |
| load_image_and_restore | |
| hibernate | hibernate - Carry out system hibernation, including saving the image. |
| hibernate_preallocate_memory | hibernate_preallocate_memory - Preallocate memory for hibernation image |
| swsusp_alloc | swsusp_alloc - Allocate memory for hibernation image |
| prepare_image | prepare_image - Make room for loading hibernation image |
| get_buffer | get_buffer - Get the address to store the next image data page.* Get the address that snapshot_write_next() should return to its caller to* write to. |
| snapshot_release | |
| snapshot_ioctl |
| 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 |