| Function report | 
| Source Code: mm\mremap.c | Create Date:2022-07-28 14:53:08 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:move_page_tables
Proto: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)
Type:unsigned long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | If Not old_pmd Then Continue | 
| 267 | If Not new_pmd Then Break | 
| 269 | If is_swap_pmd( * old_pmd) || pmd_trans_huge( * old_pmd) Then | 
| 270 | If extent == HPAGE_PMD_SIZE Then | 
| 273 | If need_rmap_locks Then take_rmap_locks(vma) | 
| 277 | If need_rmap_locks Then drop_rmap_locks(vma) | 
| 279 | If moved Then Continue | 
| 282 | split_huge_pmd(vma, old_pmd, old_addr) | 
| 283 | If This is a noop if Transparent Hugepage Support is not built into* the kernel Then Continue | 
| 285 | Else if extent == PMD_SIZE Then If pte_alloc(The address space we belong to. , new_pmd) Then | 
| 305 | Break | 
| Name | Describe | 
|---|---|
| move_vma | 
| 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 |