Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vm_pgprot_modify

Proto:static pgprot_t vm_pgprot_modify(pgprot_t oldprot, unsigned long vm_flags)

Type:pgprot_t

Parameter:

TypeParameterName
pgprot_toldprot
unsigned longvm_flags
118  Return pgprot_modify(oldprot, vm_get_page_prot(vm_flags))
Caller
NameDescribe
vma_set_page_protUpdate vma->vm_page_prot to reflect vma->vm_flags.
vma_wants_writenotifySome shared mappings will want the pages marked read-only* to track write events. If so, we'll downgrade vm_page_prot* to the private version (using protection_map[] without the* VM_SHARED bit).