Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zap_pud_range

Proto:static inline unsigned long zap_pud_range(struct mmu_gather *tlb, struct vm_area_struct *vma, p4d_t *p4d, unsigned long addr, unsigned long end, struct zap_details *details)

Type:unsigned long

Parameter:

TypeParameterName
struct mmu_gather *tlb
struct vm_area_struct *vma
p4d_t *p4d
unsigned longaddr
unsigned longend
struct zap_details *details
1200  pud = pud_offset(p4d, addr)
1201  Do
1202  next = pud_addr_end(addr, end)
1203  If pud_trans_huge( * pud) || pud_devmap( * pud) Then
1204  If next - addr != HPAGE_PUD_SIZE Then
1207  Else if zap_huge_pud(tlb, vma, pud, addr) Then Go to next
1211  If pud_none_or_clear_bad(pud) Then Continue
1213  next = zap_pmd_range(tlb, vma, pud, addr, next, details)
1214  :
1215  cond_resched()
1216  When pud++, addr = next , addr != end cycle
1218  Return addr
Caller
NameDescribe
zap_p4d_range