函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\sparse.c Create Date:2022-07-27 17:07:27
Last Modify:2020-03-17 22:36:03 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Validate the physical addressing limitations of the model

函数原型:void __meminit mminit_validate_memmodel_limits(unsigned long *start_pfn, unsigned long *end_pfn)

返回类型:void

参数:

类型参数名称
unsigned long *start_pfn
unsigned long *end_pfn
159  max_sparsemem_pfn等于1UL左移MAX_PHYSMEM_BITSPAGE_SHIFT determines the page size
165  如果start_pfn大于max_sparsemem_pfn
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  否则如果end_pfn大于max_sparsemem_pfn
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
调用者
名称描述
memory_presentRecord a memory area against a node.