Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_data_pages - Compute the total number of saveable non-highmem pages.

Proto:static unsigned int count_data_pages(void)

Type:unsigned int

Parameter:Nothing

1319  n = 0
1321  do nothing (zone)
1322  If 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 Then Continue
1325  mm/page_alloc.c
1326  max_zone_pfn = zone_end_pfn(zone)
1327  When pfn < max_zone_pfn cycle If saveable_page - Check if the given page is saveable Then
1329  n++
1331  Return n
Caller
NameDescribe
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