函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sparse_init_one_section

函数原型: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)

返回类型:void

参数:

类型参数名称
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
调用者
名称描述
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