Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_vma_mapped.c Create Date:2022-07-28 14:54:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static bool check_pte(struct page_vma_mapped_walk *pvmw)

Type:bool

Parameter:

TypeParameterName
struct page_vma_mapped_walk *pvmw
85  If flags & Look for migarion entries rather than present PTEs Then
87  If Not heck whether a pte points to a swap entry Then Return false
89  entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t.
91  If Not is_migration_entry(entry) Then Return false
94  pfn = migration_entry_to_pfn(entry)
95  Else if heck whether a pte points to a swap entry Then
99  entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t.
100  If Not is_device_private_entry(entry) Then Return false
103  pfn = device_private_entry_to_pfn(entry)
104  Else
105  If Not pte_present( * pte) Then Return false
108  pfn = pte_pfn( * pte)
111  Return pfn_in_hpage(page, pfn)
Caller
NameDescribe
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