Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:01:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swsusp_alloc - Allocate memory for hibernation image
Proto:static int swsusp_alloc(struct memory_bitmap *copy_bm, unsigned int nr_pages, unsigned int nr_highmem)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct memory_bitmap * | copy_bm | |
| unsigned int | nr_pages | |
| unsigned int | nr_highmem |
| 1948 | If nr_highmem > 0 Then |
| 1949 | If get_highmem_buffer(PG_ANY) Then Go to err_out |
| 1957 | nr_pages -= Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices. |
| 1964 | memory_bm_set_bit(copy_bm, page_to_pfn(page)) |
| 1968 | Return 0 |
| 1970 | err_out : |
| 1972 | Return -ENOMEM |
| 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 |