Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:07:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:free_area_init_node

Proto:void __init free_area_init_node(int nid, unsigned long *zones_size, unsigned long node_start_pfn, unsigned long *zholes_size)

Type:void

Parameter:

TypeParameterName
intnid
unsigned long *zones_size
unsigned longnode_start_pfn
unsigned long *zholes_size
6864  pgdat = NODE_DATA(nid)
6865  start_pfn = 0
6866  end_pfn = 0
6869  WARN_ON(nr_zones || kswapd_classzone_idx)
6871  node_id = nid
6872  node_start_pfn = 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.
Caller
NameDescribe
free_area_init