Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmemmap_pgd_populate

Proto:pgd_t *__meminit vmemmap_pgd_populate(unsigned long addr, int node)

Type:pgd_t

Parameter:

TypeParameterName
unsigned longaddr
intnode
206  pgd = a shortcut which implies the use of the kernel's pgd, instead* of a process's(addr)
207  If The "pgd_xxx()" functions here are trivial for a folded two-level* setup: the p4d is never bad, and a p4d always exists (as it's folded* into the pgd entry) Then
208  p = vmemmap_alloc_block_zero(PAGE_SIZE, node)
209  If Not p Then Return NULL
211  pgd_populate( & For dynamically allocated mm_structs, there is a dynamically sized cpumask* at the end of the structure, the size of which depends on the maximum CPU* number the system can see, pgd, p)
213  Return pgd
Caller
NameDescribe
vmemmap_populate_basepages