函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:snapshot_additional_pages - Estimate the number of extra pages needed

函数原型:unsigned int snapshot_additional_pages(struct zone *zone)

返回类型:unsigned int

参数:

类型参数名称
struct zone *zone
1182  rtree等于nodes等于DIV_ROUND_UP(内存域中页的总数, BM_BITS_PER_BLOCK)
1183  rtree加等于DIV_ROUND_UP(rtree * sizeof(structrtree_node), struct linked_page is used to build chains of pages )
1185 nodes大于1循环
1186  nodes等于DIV_ROUND_UP(nodes, Functions that operate on memory bitmaps )
1187  rtree加等于nodes
1190  返回:2乘rtree
调用者
名称描述
hibernate_preallocate_memoryhibernate_preallocate_memory - Preallocate memory for hibernation image