函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\hygon.c Create Date:2022-07-27 08:59:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:To workaround broken NUMA config. Read the comment in* srat_detect_node().

函数原型:static int nearby_node(int apicid)

返回类型:int

参数:

类型参数名称
intapicid
39 i大于等于0循环
40  node等于__apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[i]
41  如果node不等于NUMA_NO_NODENUMA节点状态(node)则返回:node
44 i小于MAX_LOCAL_APIC循环
45  node等于__apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[i]
46  如果node不等于NUMA_NO_NODENUMA节点状态(node)则返回:node
49  返回:FIXME: better would be to fix all architectures to never return> MAX_NUMNODES, then the silly min_ts could be dropped. (node_online_map)
调用者
名称描述
srat_detect_node