函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:37:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:建立内存管理节点(ZONE)表

函数原型:void __ref build_all_zonelists(pg_data_t *pgdat)

返回类型:void

参数:

类型参数名称
pg_data_t *pgdat
5799  如果system_state恒等于SYSTEM_BOOTING
5800  build_all_zonelists_init()
5801  否则
5802  __build_all_zonelists(pgdat)
5805  The total number of pages which are beyond the high watermark within all* zones.等于r_free_pagecache_pages - count number of pages beyond high watermark* nr_free_pagecache_pages() counts the number of pages which are beyond the* high watermark within all zones.* Return: number of pages beyond high watermark within all zones.
5813  如果The total number of pages which are beyond the high watermark within all* zones.小于pageblock_nr_pagesMIGRATE_TYPESpage_group_by_mobility_disabled等于1
5815  否则page_group_by_mobility_disabled等于0
5818  打印信息("Built %u zonelists, mobility grouping %s. Total pages: %ld\n", nr_online_nodes, page_group_by_mobility_disabled ? "off" : "on", The total number of pages which are beyond the high watermark within all* zones.)
5823  打印信息("Policy zone: %s\n", zone_names[policy_zone])
调用者
名称描述
hotadd_new_pgdatwe are OK calling __meminit stuff here - we have CONFIG_MEMORY_HOTPLUG
start_kernel启动内核