函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static void get_cache_id(int cpu, struct _cpuid4_info_regs *id4_regs)

返回类型:void

参数:

类型参数名称
intcpu
struct _cpuid4_info_regs *id4_regs
1008  c等于cpu_data(cpu)
1012  num_threads_sharing等于1加num_threads_sharing
1013  index_msb等于get_count_order(num_threads_sharing)
1014  id等于apicid右移index_msb
调用者
名称描述
__populate_cache_leaves