Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zero_pmd_populate

Proto:static int __ref zero_pmd_populate(pud_t *pud, unsigned long addr, unsigned long end)

Type:int

Parameter:

TypeParameterName
pud_t *pud
unsigned longaddr
unsigned longend
116  pmd = pmd_offset(pud, addr)
119  Do
120  next = pmd_addr_end(addr, end)
122  If IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE Then
125  Continue
128  If pmd_none( * pmd) Then
135  If Not p Then Return -ENOMEM
140  zero_pte_populate(pmd, addr, next)
141  When pmd++, addr = next , addr != end cycle
143  Return 0
Caller
NameDescribe
zero_pud_populate