函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:srat_detect_node

函数原型:static void srat_detect_node(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
131  cpu等于当前cpu ID()
133  apicid等于apicid
135  node等于numa_cpu_node(cpu)
136  如果node恒等于NUMA_NO_NODEnode等于per_cpu(Last level cache ID of each logical CPU , cpu)
144  如果fixup_cpu_idfixup_cpu_id(c, node)
147  如果非NUMA节点状态(node)则
166  ht_nodeid等于initial_apicid
168  如果__apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[ht_nodeid]不等于NUMA_NO_NODEnode等于__apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[ht_nodeid]
171  如果非NUMA节点状态(node)则node等于To workaround broken NUMA config. Read the comment in* srat_detect_node().
174  numa_set_node(cpu, node)
调用者
名称描述
init_hygon