Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:walk_hugetlb_range

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

Type:int

Parameter:

TypeParameterName
unsigned longaddr
unsigned longend
struct mm_walk *walk
186  vma = vma
187  h = hstate_vma(vma)
189  hmask = huge_page_mask(h)
190  sz = huge_page_size(h)
192  ops = ops
193  err = 0
195  Do
196  next = hugetlb_entry_end(h, addr, end)
197  pte = huge_pte_offset(mm, addr & hmask, sz)
199  If pte Then err = hugetlb_entry(pte, hmask, addr, next, walk)
201  Else if pte_hole Then err = pte_hole(addr, next, walk)
204  If err Then Break
206  When addr = next , addr != end cycle
208  Return err
Caller
NameDescribe
__walk_page_range