函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\snapshot.c Create Date:2022-07-27 11:00:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:alloc_image_page

函数原型:static struct page *alloc_image_page(gfp_t gfp_mask)

返回类型:struct page

参数:

类型参数名称
gfp_tgfp_mask
196  page等于alloc_page(gfp_mask)
197  如果page
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  返回:page
调用者
名称描述
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