Function report |
Source Code:mm\memory.c |
Create Date:2022-07-28 14:40:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:copy_pte_range
Proto: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)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | Do |
831 | If progress >= 32 Then |
832 | progress = 0 |
838 | progress++ |
839 | Continue |
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. |
843 | If val Then Break |
845 | progress += 8 |
848 | arch_leave_lazy_mmu_mode() |
849 | spin_unlock(src_ptl) |
850 | pte_unmap(orig_src_pte) |
851 | add_mm_rss_vec(dst_mm, rss) |
853 | cond_resched() |
855 | If val Then |
856 | If add_swap_count_continuation(entry, GFP_KERNEL) < 0 Then Return -ENOMEM |
858 | progress = 0 |
862 | Return 0 |
Name | Describe |
---|---|
copy_pmd_range |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |