Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\e820.c Create Date:2022-07-28 07:43:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Find the ranges of physical addresses that do not correspond to* E820 RAM areas and register the corresponding pages as 'nosave' for* hibernation (32-bit) or software suspend and suspend to RAM (64-bit)

Proto:void __init e820__register_nosave_regions(unsigned long limit_pfn)

Type:void

Parameter:

TypeParameterName
unsigned longlimit_pfn
742  pfn = 0
744  When i < nr_entries cycle
745  entry = entries[i]
747  If pfn < PFN_UP(addr) Then register_nosave_region(pfn, PFN_UP(addr))
750  pfn = PFN_DOWN(addr + size)
752  If type != E820_TYPE_RAM && type != E820_TYPE_RESERVED_KERN Then register_nosave_region(PFN_UP(addr), pfn)
755  If pfn >= limit_pfn Then Break