Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:01:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:preallocate_image_pages - Allocate a number of pages for hibernation image.*@nr_pages: Number of page frames to allocate.*@mask: GFP flags to use for the allocation.* Return value: Number of page frames actually allocated
Proto:static unsigned long preallocate_image_pages(unsigned long nr_pages, gfp_t mask)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | nr_pages | |
gfp_t | mask |
1523 | nr_alloc = 0 |
1528 | page = alloc_image_page(mask) |
1529 | If Not page Then Break |
1532 | If PageHighMem(page) Then Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices.++ |
1534 | Else Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices.++ |
1536 | nr_pages-- |
1537 | nr_alloc++ |
1540 | Return nr_alloc |
Name | Describe |
---|---|
preallocate_image_memory |
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 |