Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sparse_init_one_section

Proto:static void __meminit sparse_init_one_section(struct mem_section *ms, unsigned long pnum, struct page *mem_map, struct mem_section_usage *usage, unsigned long flags)

Type:void

Parameter:

TypeParameterName
struct mem_section *ms
unsigned longpnum
struct page *mem_map
struct mem_section_usage *usage
unsigned longflags
337  section_mem_map &= ~SECTION_MAP_MASK
338  section_mem_map |= Subtle, we encode the real pfn into the mem_map such that* the identity pfn - section_mem_map will return the actual* physical page frame number. | SECTION_HAS_MEM_MAP | flags
340  usage = usage
Caller
NameDescribe
sparse_init_nidInitialize sparse on a specific node. The node spans [pnum_begin, pnum_end)* And number of present sections in this node is map_count.
sparse_add_sectionsparse_add_section - add a memory section, or populate an existing one*@nid: The node to add section on*@start_pfn: start pfn of the memory range*@nr_pages: number of pfns to add in the section*@altmap: device page map* This is only intended for hotplug