函数逻辑报告 | 
Source Code:mm\memory.c | 
Create Date:2022-07-27 16:06:54 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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.
函数原型:static inline unsigned long copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm, pte_t *dst_pte, pte_t *src_pte, struct vm_area_struct *vma, unsigned long addr, int *rss)
返回类型:unsigned long
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct mm_struct * | dst_mm | |
| struct mm_struct * | src_mm | |
| pte_t * | dst_pte | |
| pte_t * | src_pte | |
| struct vm_area_struct * | vma | |
| unsigned long | addr | |
| int * | rss | 
| 700 | vm_flags等于Flags, see mm.h. | 
| 705 | 如果此条件成立可能性小(为编译器优化)(!pte_present(pte))则 | 
| 706 | entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. | 
| 708 | 如果此条件成立可能性大(为编译器优化)(!non_swap_entry(entry))则 | 
| 721 | 否则如果is_migration_entry(entry)则 | 
| 722 | page等于migration_entry_to_page(entry) | 
| 724 | rss[mm_counter(page)]自加 | 
| 738 | 否则如果is_device_private_entry(entry)则 | 
| 751 | rss[mm_counter(page)]自加 | 
| 752 | page_dup_rmap(page, false) | 
| 768 | 转到:out_set_pte | 
| 775 | 如果is_cow_mapping(vm_flags)且pte_write(pte)则 | 
| 776 | ptep_set_wrprotect(src_mm, addr, src_pte) | 
| 777 | pte等于pte_wrprotect(pte) | 
| 784 | 如果vm_flags按位与VM_SHARED则pte等于pte_mkclean(pte) | 
| 789 | 如果page则 | 
| 793 | 否则如果pte_devmap(pte)则 | 
| 797 | out_set_pte : | 
| 798 | set_pte_at(dst_mm, addr, dst_pte, pte) | 
| 799 | 返回:0 | 
| 名称 | 描述 | 
|---|---|
| copy_pte_range | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |