函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-27 16:48:19
Last Modify:2020-03-17 22:19:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:page_swapped

函数原型:static bool page_swapped(struct page *page)

返回类型:bool

参数:

类型参数名称
struct page *page
1570  如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_THP_SWAP)或此条件成立可能性大(为编译器优化)(!PageTransCompound returns true for both transparent huge pages* and hugetlbfs pages, so it should only be called when it's known* that hugetlbfs pages aren't involved.)则返回:How many references to page are currently swapped out?* This does not give an exact answer when swap count is continued,* but does include the high COUNT_CONTINUED flag to allow for that.不等于0
1573  page等于compound_head(page)
1574  val等于page_private(page)
1575  si等于_swap_info_get(entry)
1576  如果si则返回:swap_page_trans_huge_swapped(si, entry)
1578  返回:false
调用者
名称描述
try_to_free_swapIf swap is getting full, or if there are no more mappings of this page,* then try_to_free_swap is called to free its swap space.