函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\cacheinfo.c Create Date:2022-07-27 08:54:25
Last Modify:2020-03-16 20:07:28 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__populate_cache_leaves

函数原型:static int __populate_cache_leaves(unsigned int cpu)

返回类型:int

参数:

类型参数名称
unsigned intcpu
1020  this_cpu_ci等于get_cpu_cacheinfo(cpu)
1021  this_leaf等于info_list
1022  struct _cpuid4_info_regs id4_regs = {}
1024 idx小于num_leaves循环
1025  ret等于cpuid4_cache_lookup_regs(idx, & id4_regs)
1026  如果ret则返回:ret
1028  The max shared threads number comes from CPUID.4:EAX[25-14] with input* ECX as cache index. Then right shift apicid by the number's order to get* cache id for this cache node.
1029  ci_leaf_init(this_leaf++, & id4_regs)
1030  __cache_cpumap_setup(cpu, idx, & id4_regs)
1032  cpu_map_populated = true
1034  返回:0
调用者
名称描述
_populate_cache_leaves