函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_vma_mapped.c Create Date:2022-07-27 16:23:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:heck_pte - check if @pvmw->page is mapped at the @pvmw->pte* page_vma_mapped_walk() found a place where @pvmw->page is *potentially** mapped

函数原型:static bool check_pte(struct page_vma_mapped_walk *pvmw)

返回类型:bool

参数:

类型参数名称
struct page_vma_mapped_walk *pvmw
85  如果flags按位与Look for migarion entries rather than present PTEs
87  如果非heck whether a pte points to a swap entry 则返回:false
89  entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t.
91  如果非is_migration_entry(entry)则返回:false
94  pfn等于migration_entry_to_pfn(entry)
95  否则如果heck whether a pte points to a swap entry
99  entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t.
100  如果非is_device_private_entry(entry)则返回:false
103  pfn等于device_private_entry_to_pfn(entry)
104  否则
105  如果非pte_present( * pte)则返回:false
108  pfn等于pte_pfn( * pte)
111  返回:pfn_in_hpage(page, pfn)
调用者
名称描述
page_vma_mapped_walkpage_vma_mapped_walk - check if @pvmw->page is mapped in @pvmw->vma at*@pvmw->address*@pvmw: pointer to struct page_vma_mapped_walk. page, vma, address and flags* must be set. pmd, pte and ptl must be NULL.* Returns true if the page is mapped in the vma