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:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:e820__reserve_resources_late

Proto:void __init e820__reserve_resources_late(void)

Type:void

Parameter:Nothing

1194  res = Mark E820 reserved areas as busy for the resource manager:
1195  When i < nr_entries cycle
1196  If Not parent && end Then insert_resource_expand_to_fit( & iomem_resource, res)
1198  res++
1205  When i < nr_entries cycle
1206  entry = entries[i]
1209  If type != E820_TYPE_RAM Then Continue
1212  start = addr + size
1213  end = und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(start, How much should we pad the end of RAM, depending on where it is?) - 1
1214  If end > MAX_RESOURCE_SIZE Then end = MAX_RESOURCE_SIZE
1216  If start >= end Then Continue
1219  printk(debug-level messages "e820: reserve RAM buffer [mem %#010llx-%#010llx]\n", start, end)
1220  reserve_region_with_split( & iomem_resource, start, end, "RAM buffer")