Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:snapshot_additional_pages - Estimate the number of extra pages needed

Proto:unsigned int snapshot_additional_pages(struct zone *zone)

Type:unsigned int

Parameter:

TypeParameterName
struct zone *zone
1182  rtree = nodes = DIV_ROUND_UP(spanned_pages, BM_BITS_PER_BLOCK)
1183  rtree += DIV_ROUND_UP(rtree * sizeof(structrtree_node), struct linked_page is used to build chains of pages )
1185  When nodes > 1 cycle
1186  nodes = DIV_ROUND_UP(nodes, Functions that operate on memory bitmaps )
1187  rtree += nodes
1190  Return 2 * rtree
Caller
NameDescribe
hibernate_preallocate_memoryhibernate_preallocate_memory - Preallocate memory for hibernation image