函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int __try_online_node(int nid, u64 start, bool set_node_online)

返回类型:int

参数:

类型参数名称
intnid
u64start
boolset_node_online
976  ret等于1
978  如果NUMA节点状态(nid)则返回:0
981  pgdat等于we are OK calling __meminit stuff here - we have CONFIG_MEMORY_HOTPLUG
982  如果非pgdat
983  打印错误信息("Cannot online node %d due to NULL pgdat\n", nid)
984  ret等于负ENOMEM
985  转到:out
988  如果set_node_online
989  node_set_online(nid)
990  ret等于Registers an online node
991  BUG_ON(ret)
993  out :
994  返回:ret
调用者
名称描述
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