函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpuid4_cache_lookup_regs

函数原型:static int cpuid4_cache_lookup_regs(int index, struct _cpuid4_info_regs *this_leaf)

返回类型:int

参数:

类型参数名称
intindex
struct _cpuid4_info_regs *this_leaf
600  如果CPU vendor 恒等于X86_VENDOR_AMD
601  如果boot_cpu_has(Topology extensions CPUID leafs )则cpuid_count(0x8000001d, index, & full, & full, & full, & edx)
604  否则amd_cpuid4(index, & eax, & ebx, & ecx)
607  否则如果CPU vendor 恒等于X86_VENDOR_HYGON
608  cpuid_count(0x8000001d, index, & full, & full, & full, & edx)
611  否则
612  cpuid_count(4, index, & full, & full, & full, & edx)
615  如果type恒等于CTYPE_NULL则返回:负EIO
618  eax等于eax
619  ebx等于ebx
620  ecx等于ecx
621  size等于number_of_sets加1的和乘coherency_line_size加1的和乘physical_line_partition加1的和乘ways_of_associativity加1的和
625  返回:0
调用者
名称描述
init_intel_cacheinfo
__populate_cache_leaves