Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\pgtable.h Create Date:2022-07-28 06:00:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pfn_pmd

Proto:static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot)

Type:pmd_t

Parameter:

TypeParameterName
unsigned longpage_nr
pgprot_tpgprot
575  pfn = page_nr << PAGE_SHIFT determines the page size
576  pfn ^= Entries that were set to PROT_NONE are inverted
577  pfn &= PHYSICAL_PMD_PAGE_MASK
578  Return __pmd(pfn | check_pgprot(pgprot))