Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:01:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swsusp_save
Proto:asmlinkage __visible int swsusp_save(void)
Type:int
Parameter:Nothing
1979 | pr_info("Creating hibernation image:\n") |
1981 | drain_local_pages(NULL) |
1983 | nr_highmem = count_highmem_pages() |
1984 | pr_info("Need to copy %u pages\n", nr_pages + nr_highmem) |
1986 | If Not gh_free_mem - Check if there is enough free memory for the image. Then |
1991 | If swsusp_alloc - Allocate memory for hibernation image Then |
2000 | drain_local_pages(NULL) |
2009 | nr_pages += nr_highmem |
2011 | Number of pages needed for saving the original pfns of the image pages = DIV_ROUND_UP(nr_pages * sizeof(long), PAGE_SIZE) |
2015 | Return 0 |
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 |