Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:saveable_page - Check if the given page is saveable

Proto:static struct page *saveable_page(struct zone *zone, unsigned long pfn)

Type:struct page

Parameter:

TypeParameterName
struct zone *zone
unsigned longpfn
1287  If Not pfn_valid(pfn) Then Return NULL
1290  page = Return page for the valid pfn only if the page is online. All pfn* walkers which rely on the fully initialized page->flags and others* should use this rather than pfn_valid && pfn_to_page(pfn)
1291  If Not page || page_zone(page) != zone Then Return NULL
1294  BUG_ON(PageHighMem(page))
1296  If swsusp_page_is_forbidden(page) || swsusp_page_is_free(page) Then Return NULL
1299  If PageOffline() indicates that the page is logically offline although the* containing section is online. (e.g. inflated in a balloon driver or* not onlined when onlining the section).* The content of these pages is effectively stale. Such pages should not Then Return NULL
1302  If PageReserved(page) && ( Not kernel_page_present(page) || pfn_is_nosave(pfn)) Then Return NULL
1306  If page_is_guard(page) Then Return NULL
1309  Return page
Caller
NameDescribe
count_data_pages_data_pages - Compute the total number of saveable non-highmem pages.