Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\sparse.c Create Date:2022-07-28 15:34:10
Last Modify:2020-03-17 22:36:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Validate the physical addressing limitations of the model

Proto:void __meminit mminit_validate_memmodel_limits(unsigned long *start_pfn, unsigned long *end_pfn)

Type:void

Parameter:

TypeParameterName
unsigned long *start_pfn
unsigned long *end_pfn
159  max_sparsemem_pfn = 1UL << MAX_PHYSMEM_BITS - PAGE_SHIFT determines the page size
165  If start_pfn > max_sparsemem_pfn Then
166  mminit_dprintk(MMINIT_WARNING, "pfnvalidation", "Start of range %lu -> %lu exceeds SPARSEMEM max %lu\n", * start_pfn, * end_pfn, max_sparsemem_pfn)
169  WARN_ON_ONCE(1)
170  start_pfn = max_sparsemem_pfn
171  end_pfn = max_sparsemem_pfn
172  Else if end_pfn > max_sparsemem_pfn Then
173  mminit_dprintk(MMINIT_WARNING, "pfnvalidation", "End of range %lu -> %lu exceeds SPARSEMEM max %lu\n", * start_pfn, * end_pfn, max_sparsemem_pfn)
176  WARN_ON_ONCE(1)
177  end_pfn = max_sparsemem_pfn
Caller
NameDescribe
memory_presentRecord a memory area against a node.