Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vm_normal_page_pmd

Proto:struct page *vm_normal_page_pmd(struct vm_area_struct *vma, unsigned long addr, pmd_t pmd)

Type:struct page

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longaddr
pmd_tpmd
651  pfn = pmd_pfn(pmd)
658  If Value for the false possibility is greater at compile time(Flags, see mm.h. & (Page-ranges managed without "struct page", just pure PFN | Can contain "struct page" and pure PFN pages )) Then
660  If Not pfn_valid(pfn) Then Return NULL
662  Go to out
663  Else
666  If pfn == Offset (within vm_file) in PAGE_SIZEunits + off Then Return NULL
668  If Not is_cow_mapping(Flags, see mm.h. ) Then Return NULL
673  If pmd_devmap(pmd) Then Return NULL
675  If is_huge_zero_pmd(pmd) Then Return NULL
677  If Value for the false possibility is greater at compile time(pfn > highest_memmap_pfn) Then Return NULL
684  out :
685  Return pfn_to_page(pfn)