Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Update vma->vm_page_prot to reflect vma->vm_flags.

Proto:void vma_set_page_prot(struct vm_area_struct *vma)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
124  vm_flags = Flags, see mm.h.
127  vm_page_prot = vm_pgprot_modify(Access permissions of this VMA. , vm_flags)
128  If Some 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). Then
129  vm_flags &= ~VM_SHARED
130  vm_page_prot = vm_pgprot_modify(vm_page_prot, vm_flags)
133  WRITE_ONCE(Access permissions of this VMA. , vm_page_prot)
Caller
NameDescribe
mmap_region
mprotect_fixup