函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\e820.c Create Date:2022-07-27 08:43:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:e820__reserve_resources_late

函数原型:void __init e820__reserve_resources_late(void)

返回类型:void

参数:

1194  res等于Mark E820 reserved areas as busy for the resource manager:
1195 i小于nr_entries循环
1196  如果非parentendinsert_resource_expand_to_fit( & iomem_resource, res)
1198  res自加
1205 i小于nr_entries循环
1206  entry等于entries[i]
1209  如果type不等于E820_TYPE_RAM则继续下一循环
1212  start等于addrsize
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  如果end大于MAX_RESOURCE_SIZEend等于MAX_RESOURCE_SIZE
1216  如果start大于等于end则继续下一循环
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")