函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\node.h Create Date:2022-07-27 06:55:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Registers an online node

函数原型:static inline int register_one_node(int nid)

返回类型:int

参数:

类型参数名称
intnid
120  error等于0
122  如果NUMA节点状态(nid)则
123  pgdat等于NUMA节点数据区(nid)
124  start_pfn等于该NUMA结点第一个页帧的逻辑编号
125  end_pfn等于start_pfn该结点以页帧为单位计算的长度,包含内存空洞
127  error等于Core of the node registration - only memory hotplug should use this
128  如果error则返回:error
131  error等于link_mem_sections(nid, start_pfn, end_pfn)
134  返回:error
调用者
名称描述
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