Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:we are OK calling __meminit stuff here - we have CONFIG_MEMORY_HOTPLUG

Proto:static pg_data_t __ref *hotadd_new_pgdat(int nid, u64 start)

Type:pg_data_t

Parameter:

TypeParameterName
intnid
u64start
897  start_pfn = PFN_DOWN(start)
899  pgdat = NODE_DATA(nid)
900  If Not pgdat Then
901  pgdat = arch_alloc_nodedata(nid)
902  If Not pgdat Then Return NULL
905  per_cpu_nodestats = alloc_percpu(structper_cpu_nodestat)
907  arch_refresh_nodedata(nid, pgdat)
908  Else
915  nr_zones = 0
916  kswapd_order = 0
917  kswapd_classzone_idx = 0
922  memset(p, 0, size of p )
928  node_id = nid
929  node_start_pfn = start_pfn
932  Set up the zone data structures* - init pgdat internals* - init all zones belonging to this node* NOTE: this function is only called during memory hotplug
938  less system_state == SYSTEM_BOOTING.* __ref due to call of __init annotated helper build_all_zonelists_init* [protected by SYSTEM_BOOTING].
945  reset_node_managed_pages(pgdat)
946  reset_node_present_pages(pgdat)
948  Return pgdat
Caller
NameDescribe
__try_online_nodery_online_node - online a node if offlined*@nid: the node ID*@start: start addr of the node*@set_node_online: Whether we want to online the node* called by cpu_up() to online a node without onlined memory