Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:walk_pgd_range

Proto:static int walk_pgd_range(unsigned long addr, unsigned long end, struct mm_walk *walk)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
unsigned longend
struct mm_walk *walk
153  ops = ops
154  err = 0
156  pgd = a shortcut to get a pgd_t in a given mm(mm, addr)
157  Do
158  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)
159  If pgd_none_or_clear_bad(pgd) Then
160  If pte_hole Then err = pte_hole(addr, next, walk)
162  If err Then Break
164  Continue
166  If pmd_entry || pte_entry Then err = walk_p4d_range(pgd, addr, next, walk)
168  If err Then Break
170  When pgd++, addr = next , addr != end cycle
172  Return err
Caller
NameDescribe
__walk_page_range