Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\node.h Create Date:2022-07-28 05:56:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Registers an online node

Proto:static inline int register_one_node(int nid)

Type:int

Parameter:

TypeParameterName
intnid
120  error = 0
122  If node_online(nid) Then
123  pgdat = NODE_DATA(nid)
124  start_pfn = node_start_pfn
125  end_pfn = start_pfn + total size of physical page range, including holes
127  error = Core of the node registration - only memory hotplug should use this
128  If error Then Return error
131  error = link_mem_sections(nid, start_pfn, end_pfn)
134  Return error
Caller
NameDescribe
topology_init
__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