Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zap_pmd_range

Proto:static inline unsigned long zap_pmd_range(struct mmu_gather *tlb, struct vm_area_struct *vma, pud_t *pud, unsigned long addr, unsigned long end, struct zap_details *details)

Type:unsigned long

Parameter:

TypeParameterName
struct mmu_gather *tlb
struct vm_area_struct *vma
pud_t *pud
unsigned longaddr
unsigned longend
struct zap_details *details
1165  pmd = pmd_offset(pud, addr)
1166  Do
1167  next = pmd_addr_end(addr, end)
1168  If is_swap_pmd( * pmd) || pmd_trans_huge( * pmd) || pmd_devmap( * pmd) Then
1171  Else if zap_huge_pmd(tlb, vma, pmd, addr) Then Go to next
1182  If This function is meant to be used by sites walking pagetables with* the mmap_sem hold in read mode to protect against MADV_DONTNEED and* transhuge page faults Then Go to next
1184  next = zap_pte_range(tlb, vma, pmd, addr, next, details)
1185  :
1186  cond_resched()
1187  When pmd++, addr = next , addr != end cycle
1189  Return addr
Caller
NameDescribe
zap_pud_range