Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum)

Type:unsigned long

Parameter:

TypeParameterName
struct page *mem_map
unsigned longpnum
316  coded_mem_map = mem_map - section_nr_to_pfn(pnum)
318  BUILD_BUG_ON - break compile if a condition is true(SECTION_MAP_LAST_BIT > (1UL << PFN_SECTION_SHIFT))
319  BUG_ON(coded_mem_map & ~SECTION_MAP_MASK)
320  Return coded_mem_map
Caller
NameDescribe
sparse_init_one_section