函数逻辑报告 |
Source Code:mm\mprotect.c |
Create Date:2022-07-27 16:20:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:change_pte_range
函数原型:static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr, unsigned long end, pgprot_t newprot, int dirty_accountable, int prot_numa)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
pmd_t * | pmd | |
unsigned long | addr | |
unsigned long | end | |
pgprot_t | newprot | |
int | dirty_accountable | |
int | prot_numa |
44 | pages等于0 |
61 | pte等于pte_offset_map_lock(The address space we belong to. , pmd, addr, & ptl) |
64 | 如果prot_numa且非Flags, see mm.h. 按位与VM_SHARED的值且atomic_read( & mm_users)恒等于1则target_node等于Returns the number of the current Node. |
70 | 循环 |
72 | 如果pte_present(oldpte)则 |
80 | 如果prot_numa则 |
92 | 如果is_cow_mapping(Flags, see mm.h. )且page_mapcount(page)不等于1则继续下一循环 |
108 | 如果target_node恒等于page_to_nid(page)则继续下一循环 |
112 | oldpte等于Start a pte protection read-modify-write transaction, which* protects against asynchronous hardware modifications to the pte |
113 | ptent等于pte_modify(oldpte, newprot) |
114 | 如果preserve_write则ptent等于pte_mk_savedwrite(ptent) |
121 | ptent等于pte_mkwrite(ptent) |
124 | pages自加 |
126 | entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. |
128 | 如果is_write_migration_entry(entry)则 |
134 | make_migration_entry_read( & entry) |
135 | newpte等于Convert the arch-independent representation of a swp_entry_t into the* arch-dependent pte representation. |
140 | pages自加 |
143 | 如果is_write_device_private_entry(entry)则 |
158 | arch_leave_lazy_mmu_mode() |
159 | pte_unmap_unlock(pte - 1, ptl) |
161 | 返回:pages |
名称 | 描述 |
---|---|
change_pmd_range |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |