函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-27 16:14:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Update vma->vm_page_prot to reflect vma->vm_flags.

函数原型:void vma_set_page_prot(struct vm_area_struct *vma)

返回类型:void

参数:

类型参数名称
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  如果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).
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)
调用者
名称描述
mmap_region
mprotect_fixup