函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_data_pages - Compute the total number of saveable non-highmem pages.

函数原型:static unsigned int count_data_pages(void)

返回类型:unsigned int

参数:

1319  n等于0
1321  do nothing (zone)
1322  如果s_highmem - helper function to quickly check if a struct zone is a* highmem zone or not. This is an attempt to keep references* to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a minimum.*@zone - pointer to struct zone variable则继续下一循环
1325  mm/page_alloc.c
1326  max_zone_pfn等于zone_end_pfn(zone)
1327 pfn小于max_zone_pfn循环如果saveable_page - Check if the given page is saveable
1329  n自加
1331  返回:n
调用者
名称描述
free_unnecessary_pages_unnecessary_pages - Release preallocated pages not needed for the image.
hibernate_preallocate_memoryhibernate_preallocate_memory - Preallocate memory for hibernation image
swsusp_save