free_low_memory_core_early

来源:互联网 发布:php 开源社区系统 编辑:程序博客网 时间:2024/06/15 12:30

static unsigned long __init free_low_memory_core_early(void)
{
unsigned long count = 0;
phys_addr_t start, end, size;
u64 i;

for_each_free_mem_range(i, MAX_NUMNODES, &start, &end, NULL)    count += __free_memory_core(start, end);/* free range that is used for reserved array if we allocate it */size = get_allocated_memblock_reserved_regions_info(&start);if (size)    count += __free_memory_core(start, start + size);return count;

}
将free_memory_core 函数执行的情况打印出来
这里写图片描述

原创粉丝点击