Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\snapshot.c Create Date:2022-07-28 10:00:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_image_page

Proto:static struct page *alloc_image_page(gfp_t gfp_mask)

Type:struct page

Parameter:

TypeParameterName
gfp_tgfp_mask
196  page = alloc_page(gfp_mask)
197  If page Then
198  swsusp_set_page_forbidden(page)
199  Each page frame allocated for creating the image is marked by setting the* corresponding bits in forbidden_pages_map and free_pages_map simultaneously
201  Return page
Caller
NameDescribe
preallocate_image_pagespreallocate_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
swsusp_allocswsusp_alloc - Allocate memory for hibernation image