函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:07:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:copy_pte_range
函数原型:static int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct *src_mm, pmd_t *dst_pmd, pmd_t *src_pmd, struct vm_area_struct *vma, unsigned long addr, unsigned long end)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_struct * | dst_mm | |
struct mm_struct * | src_mm | |
pmd_t * | dst_pmd | |
pmd_t * | src_pmd | |
struct vm_area_struct * | vma | |
unsigned long | addr | |
unsigned long | end |
809 | progress等于0 |
811 | swp_entry_t entry = (swp_entry_t){0} |
813 | again : |
814 | init_rss_vec(rss) |
819 | src_pte等于pte_offset_map(src_pmd, addr) |
820 | src_ptl等于pte_lockptr(src_mm, src_pmd) |
822 | orig_src_pte等于src_pte |
823 | orig_dst_pte等于dst_pte |
826 | 循环 |
831 | 如果progress大于等于32则 |
832 | progress等于0 |
838 | progress自加 |
839 | 继续下一循环 |
841 | val等于py one vm_area from one task to the other. Assumes the page tables* already present in the new task to be cleared in the whole range* covered by this vma. |
845 | progress加等于8 |
848 | arch_leave_lazy_mmu_mode() |
849 | 自旋锁解锁 |
850 | pte_unmap(orig_src_pte) |
851 | add_mm_rss_vec(dst_mm, rss) |
853 | cond_resched() |
855 | 如果val则 |
856 | 如果add_swap_count_continuation(entry, GFP_KERNEL)小于0则返回:负ENOMEM |
858 | progress等于0 |
862 | 返回:0 |
名称 | 描述 |
---|---|
copy_pmd_range |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |