函数逻辑报告 |
Source Code:mm\mremap.c |
Create Date:2022-07-27 16:21:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:move_page_tables
函数原型:unsigned long move_page_tables(struct vm_area_struct *vma, unsigned long old_addr, struct vm_area_struct *new_vma, unsigned long new_addr, unsigned long len, bool need_rmap_locks)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | old_addr | |
struct vm_area_struct * | new_vma | |
unsigned long | new_addr | |
unsigned long | len | |
bool | need_rmap_locks |
250 | flush_cache_range(vma, old_addr, old_end) |
252 | mmu_notifier_range_init( & range, MMU_NOTIFY_UNMAP, 0, vma, The address space we belong to. , old_addr, old_end) |
257 | cond_resched() |
264 | 如果非old_pmd则继续下一循环 |
269 | 如果is_swap_pmd( * old_pmd)或pmd_trans_huge( * old_pmd)则 |
270 | 如果extent恒等于HPAGE_PMD_SIZE则 |
273 | 如果need_rmap_locks则take_rmap_locks(vma) |
277 | 如果need_rmap_locks则drop_rmap_locks(vma) |
279 | 如果moved则继续下一循环 |
282 | split_huge_pmd(vma, old_pmd, old_addr) |
285 | 否则如果extent恒等于PMD_SIZE则如果pte_alloc(The address space we belong to. , new_pmd)则 |
305 | 退出 |
名称 | 描述 |
---|---|
move_vma | |
shift_arg_pages | During bprm_mm_init(), we create a temporary stack at STACK_TOP_MAX. Once* the binfmt code determines where the new stack should reside, we shift it to* its final location. The process proceeds as follows:* 1) Use shift to calculate the new vma endpoints. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |