函数逻辑报告 |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-27 11:01:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:_unnecessary_pages - Release preallocated pages not needed for the image.
函数原型:static unsigned long free_unnecessary_pages(void)
返回类型:unsigned long
参数:无
| 1605 | to_free_normal等于Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices.减save |
| 1606 | save等于0 |
| 1607 | 否则 |
| 1608 | to_free_normal等于0 |
| 1611 | save加等于count_highmem_pages() |
| 1614 | 否则 |
| 1615 | to_free_highmem等于0 |
| 1616 | save减等于Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices. |
| 1617 | 如果to_free_normal大于save则to_free_normal减等于save |
| 1619 | 否则to_free_normal等于0 |
| 1626 | 当to_free_normal大于0或to_free_highmem大于0循环 |
| 1628 | page等于pfn_to_page(pfn) |
| 1630 | 如果PageHighMem(page)则 |
| 1631 | 如果非to_free_highmem则继续下一循环 |
| 1633 | to_free_highmem自减 |
| 1635 | 否则 |
| 1636 | 如果非to_free_normal则继续下一循环 |
| 1638 | to_free_normal自减 |
| 1643 | swsusp_unset_page_free(page) |
| 1644 | __free_page(page) |
| 1647 | 返回:free |
| 名称 | 描述 |
|---|---|
| hibernate_preallocate_memory | hibernate_preallocate_memory - Preallocate memory for hibernation image |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |