Function report | 
Source Code:kernel\power\snapshot.c | 
Create Date:2022-07-28 10:01:16 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:gh_free_mem - Check if there is enough free memory for the image.
Proto:static int enough_free_mem(unsigned int nr_pages, unsigned int nr_highmem)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int | nr_pages | |
| unsigned int | nr_highmem | 
| 1878 | free = Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices. | 
| 1880 | When zone cycle If Not Returns true if a zone has memory Then | 
| 1882 | free += zone_page_state(zone, NR_FREE_PAGES) | 
| 1884 | nr_pages += count_pages_for_highmem(nr_highmem) | 
| 1885 | pr_debug("Normal pages needed: %u + %u, available pages: %u\n", nr_pages, PAGES_FOR_IO, free) | 
| 1888 | Return free > nr_pages + PAGES_FOR_IO | 
| Name | Describe | 
|---|---|
| swsusp_save | 
| 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  |