Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ry_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

Proto:static int __try_online_node(int nid, u64 start, bool set_node_online)

Type:int

Parameter:

TypeParameterName
intnid
u64start
boolset_node_online
976  ret = 1
978  If node_online(nid) Then Return 0
981  pgdat = we are OK calling __meminit stuff here - we have CONFIG_MEMORY_HOTPLUG
982  If Not pgdat Then
983  pr_err("Cannot online node %d due to NULL pgdat\n", nid)
984  ret = -ENOMEM
985  Go to out
988  If set_node_online Then
989  node_set_online(nid)
990  ret = Registers an online node
991  BUG_ON(ret)
993  out :
994  Return ret
Caller
NameDescribe
try_online_nodeUsers of this function always want to online/register the node
add_memory_resourceNOTE: The caller must call lock_device_hotplug() to serialize hotplug* and online/offline operations (triggered e.g. by sysfs).* we are OK calling __meminit stuff here - we have CONFIG_MEMORY_HOTPLUG