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

Proto:static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)

Type:pgprot_t

Parameter:

TypeParameterName
pgprot_toldprot
pgprot_tnewprot
631  preservebits = pgprot_val(oldprot) & 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.
632  addbits = pgprot_val(newprot)
633  Return __pgprot(preservebits | addbits)
Caller
NameDescribe
vm_pgprot_modify