函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:free_area_init_node

函数原型:void __init free_area_init_node(int nid, unsigned long *zones_size, unsigned long node_start_pfn, unsigned long *zholes_size)

返回类型:void

参数:

类型参数名称
intnid
unsigned long *zones_size
unsigned longnode_start_pfn
unsigned long *zholes_size
6864  pgdat等于NUMA节点数据区(nid)
6865  start_pfn等于0
6866  end_pfn等于0
6869  WARN_ON(保存结点中不同内存域的数目 || kswapd_classzone_idx)
6871  全局结点ID等于nid
6872  该NUMA结点第一个页帧的逻辑编号等于node_start_pfn
6873  per_cpu_nodestats = NULL
6880  start_pfn等于node_start_pfn
6882  calculate_node_totalpages(pgdat, start_pfn, end_pfn, zones_size, zholes_size)
6885  alloc_node_mem_map(pgdat)
6886  pgdat_set_deferred_range(pgdat)
6888  Set up the zone data structures:* - mark all pages reserved* - mark all memory queues empty* - clear the memory bitmaps* NOTE: pgdat should get zeroed by caller.* NOTE: this function is only called during early init.
调用者
名称描述
free_area_init