函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:16:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_t | vm_page_prot |
1643 | vm_flags等于Flags, see mm.h. |
1651 | 如果vm_ops且page_mkwrite或pfn_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 |
名称 | 描述 |
---|---|
vma_set_page_prot | Update vma->vm_page_prot to reflect vma->vm_flags. |
mprotect_fixup |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |