Function report |
Source Code:mm\memory.c |
Create Date:2022-07-28 14:40:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:zap_pte_range
Proto:static unsigned long zap_pte_range(struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr, unsigned long end, struct zap_details *details)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
struct mmu_gather * | tlb | |
struct vm_area_struct * | vma | |
pmd_t * | pmd | |
unsigned long | addr | |
unsigned long | end | |
struct zap_details * | details |
1028 | force_flush = 0 |
1035 | tlb_change_page_size(tlb, PAGE_SIZE) |
1036 | again : |
1037 | init_rss_vec(rss) |
1040 | flush_tlb_batched_pending(mm) |
1042 | Do |
1047 | If need_resched() Then Break |
1050 | If pte_present(ptent) Then |
1054 | If Value for the false possibility is greater at compile time(details) && page Then |
1060 | If Check page->mapping if set && Check page->mapping if set != Neutral page->mapping pointer to address_space or anon_vma or other Then Continue |
1064 | ptent = ptep_get_and_clear_full(mm, addr, pte, we are in the middle of an operation to clear* a full mm and can make some optimizations) |
1067 | If Value for the false possibility is greater at compile time(!page) Then Continue |
1072 | force_flush = 1 |
1073 | Dirty a page |
1079 | rss[mm_counter(page)]-- |
1080 | page_remove_rmap(page, false) |
1088 | Continue |
1091 | entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. |
1092 | If non_swap_entry(entry) && is_device_private_entry(entry) Then |
1093 | page = device_private_entry_to_page(entry) |
1101 | If Check page->mapping if set != Neutral page->mapping pointer to address_space or anon_vma or other Then Continue |
1107 | rss[mm_counter(page)]-- |
1108 | page_remove_rmap(page, false) |
1110 | Continue |
1114 | If Value for the false possibility is greater at compile time(details) Then Continue |
1117 | If Not non_swap_entry(entry) Then rss[MM_SWAPENTS]-- |
1119 | Else if is_migration_entry(entry) Then |
1122 | page = migration_entry_to_page(entry) |
1123 | rss[mm_counter(page)]-- |
1130 | add_mm_rss_vec(mm, rss) |
1131 | arch_leave_lazy_mmu_mode() |
1134 | If force_flush Then tlb_flush_mmu_tlbonly(tlb) |
1136 | pte_unmap_unlock(start_pte, ptl) |
1144 | If force_flush Then |
1145 | force_flush = 0 |
1146 | tlb_flush_mmu(tlb) |
1150 | cond_resched() |
1151 | Go to again |
1154 | Return addr |
Name | Describe |
---|---|
zap_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 |