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

Proto:static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)

Type:pte_t

Parameter:

TypeParameterName
pte_tpte
pgprot_tnewprot
605  val = pte_val(pte) , oldval = val
611  val &= Set of bits not changed in pte_modify. The pte's* protection key is treated like _PAGE_RW, for* instance, and is *not* included in this mask since* pte_modify() does modify it.
612  val |= check_pgprot(newprot) & ~Set of bits not changed in pte_modify. The pte's* protection key is treated like _PAGE_RW, for* instance, and is *not* included in this mask since* pte_modify() does modify it.
613  val = flip_protnone_guard(oldval, val, Extracts the PFN from a (pte|pmd|pud|pgd)val_t of a 4KB page )
614  Return __pte(val)
Caller
NameDescribe
do_numa_page
change_pte_range
huge_pte_modify