函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\amd.c Create Date:2022-07-27 08:58:41
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
419  cpu等于当前cpu ID()
421  apicid等于apicid
423  node等于numa_cpu_node(cpu)
424  如果node恒等于NUMA_NO_NODEnode等于per_cpu(Last level cache ID of each logical CPU , cpu)
432  如果fixup_cpu_idfixup_cpu_id(c, node)
435  如果非NUMA节点状态(node)则
455  ht_nodeid等于initial_apicid
457  如果__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]
460  如果非NUMA节点状态(node)则node等于To workaround broken NUMA config. Read the comment in* srat_detect_node().
463  numa_set_node(cpu, node)
调用者
名称描述
init_amd