Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmemmap_populate_basepages

Proto:int __meminit vmemmap_populate_basepages(unsigned long start, unsigned long end, int node)

Type:int

Parameter:

TypeParameterName
unsigned longstart
unsigned longend
intnode
219  addr = start
226  When addr < end cycle
227  pgd = vmemmap_pgd_populate(addr, node)
228  If Not pgd Then Return -ENOMEM
230  p4d = vmemmap_p4d_populate(pgd, addr, node)
231  If Not p4d Then Return -ENOMEM
233  pud = vmemmap_pud_populate(p4d, addr, node)
234  If Not pud Then Return -ENOMEM
236  pmd = vmemmap_pmd_populate(pud, addr, node)
237  If Not pmd Then Return -ENOMEM
239  pte = vmemmap_pte_populate(pmd, addr, node)
240  If Not pte Then Return -ENOMEM
242  vmemmap_verify(pte, node, addr, addr + PAGE_SIZE)
245  Return 0