Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-28 14:40:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:unmap_page_range

Proto:void unmap_page_range(struct mmu_gather *tlb, struct vm_area_struct *vma, unsigned long addr, unsigned long end, struct zap_details *details)

Type:void

Parameter:

TypeParameterName
struct mmu_gather *tlb
struct vm_area_struct *vma
unsigned longaddr
unsigned longend
struct zap_details *details
1248  BUG_ON(addr >= end)
1249  tlb_start_vma(tlb, vma)
1250  pgd = a shortcut to get a pgd_t in a given mm(The address space we belong to. , addr)
1251  Do
1252  next = When walking page tables, get the address of the next boundary,* or the end address of the range if that comes earlier. Although no* vma end wraps to 0, rounded up __boundary may wrap to 0 throughout.(addr, end)
1253  If pgd_none_or_clear_bad(pgd) Then Continue
1255  next = zap_p4d_range(tlb, vma, pgd, addr, next, details)
1256  When pgd++, addr = next , addr != end cycle
1257  tlb_end_vma(tlb, vma)
Caller
NameDescribe
unmap_single_vma