Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
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 |
Name | Describe |
---|---|
memory_present | Record a memory area against a node. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |