Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:walk_pmd_range

Proto:static int walk_pmd_range(pud_t *pud, unsigned long addr, unsigned long end, struct mm_walk *walk)

Type:int

Parameter:

TypeParameterName
pud_t *pud
unsigned longaddr
unsigned longend
struct mm_walk *walk
35  ops = ops
36  err = 0
38  pmd = pmd_offset(pud, addr)
39  Do
40  again :
41  next = pmd_addr_end(addr, end)
42  If pmd_none( * pmd) || Not vma Then
43  If pte_hole Then err = pte_hole(addr, next, walk)
45  If err Then Break
47  Continue
53  If pmd_entry Then err = pmd_entry(pmd, addr, next, walk)
55  If err Then Break
62  If Not pte_entry Then Continue
65  split_huge_pmd(vma, pmd, addr)
66  If This is a noop if Transparent Hugepage Support is not built into* the kernel Then Go to again
68  err = walk_pte_range(pmd, addr, next, walk)
69  If err Then Break
71  When pmd++, addr = next , addr != end cycle
73  Return err
Caller
NameDescribe
walk_pud_range