函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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).

函数原型:int vma_wants_writenotify(struct vm_area_struct *vma, pgprot_t vm_page_prot)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
pgprot_tvm_page_prot
1643  vm_flags等于Flags, see mm.h.
1644  vm_ops等于Function pointers to deal with this struct.
1647  如果vm_flags按位与VM_WRITE按位或VM_SHARED的值的值不等于VM_WRITE按位或VM_SHARED的值则返回:0
1651  如果vm_opspage_mkwritepfn_mkwrite的值则返回:1
1656  如果pgprot_val(vm_page_prot)不等于pgprot_val(vm_pgprot_modify(vm_page_prot, vm_flags))则返回:0
1661  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_MEM_SOFT_DIRTY)且非vm_flags按位与VM_SOFTDIRTY的值则返回:1
1665  如果vm_flags按位与Page-ranges managed without "struct page", just pure PFN 则返回:0
1669  返回:File we map to (can be NULL). f_mappingmapping_cap_account_dirty(f_mapping)
调用者
名称描述
vma_set_page_protUpdate vma->vm_page_prot to reflect vma->vm_flags.
mprotect_fixup