函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:saveable_page - Check if the given page is saveable

函数原型:static struct page *saveable_page(struct zone *zone, unsigned long pfn)

返回类型:struct page

参数:

类型参数名称
struct zone *zone
unsigned longpfn
1287  如果非pfn_valid(pfn)则返回: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  如果非pagepage_zone(page)不等于zone则返回:NULL
1294  BUG_ON(PageHighMem(page))
1296  如果swsusp_page_is_forbidden(page)或swsusp_page_is_free(page)则返回:NULL
1299  如果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则返回:NULL
1302  如果PageReserved(page)且非kernel_page_present(page)或pfn_is_nosave(pfn)的值则返回:NULL
1306  如果page_is_guard(page)则返回:NULL
1309  返回:page
调用者
名称描述
count_data_pages_data_pages - Compute the total number of saveable non-highmem pages.