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

Name:pmd_modify

Proto:static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot)

Type:pmd_t

Parameter:

TypeParameterName
pmd_tpmd
pgprot_tnewprot
619  val = pmd_val(pmd) , oldval = val
621  val &= _HPAGE_CHG_MASK
622  val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK
623  val = flip_protnone_guard(oldval, val, PHYSICAL_PMD_PAGE_MASK)
624  Return __pmd(val)
Caller
NameDescribe
do_huge_pmd_numa_pageNUMA hinting page fault entry point for trans huge pmds
change_huge_pmdReturns* - 0 if PMD could not be locked* - 1 if PMD was locked but protections unchange and TLB flush unnecessary* - HPAGE_PMD_NR is protections changed and TLB flush necessary