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

Name:e820__reserve_resources

Proto:void __init e820__reserve_resources(void)

Type:void

Parameter:Nothing

1127  res = memblock_alloc( size of res * nr_entries, SMP_CACHE_BYTES)
1129  If Not res Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
1132  Mark E820 reserved areas as busy for the resource manager: = res
1134  When i < nr_entries cycle
1135  entry = entries + i
1137  end = addr + size - 1
1138  If end != end Then
1139  res++
1140  Continue
1142  start = addr
1143  end = end
1144  name = e820_type_to_string(entry)
1145  flags = e820_type_to_iomem_type(entry)
1146  desc = e820_type_to_iores_desc(entry)
1153  If do_mark_busy(type, res) Then
1157  res++
1161  When i < nr_entries cycle
1162  entry = entries + i
1164  provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled