函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vm_pgprot_modify

函数原型:static pgprot_t vm_pgprot_modify(pgprot_t oldprot, unsigned long vm_flags)

返回类型:pgprot_t

参数:

类型参数名称
pgprot_toldprot
unsigned longvm_flags
118  返回:pgprot_modify(oldprot, vm_get_page_prot(vm_flags))
调用者
名称描述
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).