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:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:map_pte

Proto:static bool map_pte(struct page_vma_mapped_walk *pvmw)

Type:bool

Parameter:

TypeParameterName
struct page_vma_mapped_walk *pvmw
18  pte = pte_offset_map(pmd, address)
19  If Not (flags & Avoid racy checks ) Then
21  If Not heck whether a pte points to a swap entry Then Return false
23  Else
46  Else if Not pte_present( * pte) Then Return false
50  ptl = pte_lockptr(The address space we belong to. , pmd)
51  spin_lock(ptl)
52  Return true
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