Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-28 07:55:02
Last Modify:2020-03-16 20:28:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_model_name

Proto:static void get_model_name(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
629  If Max extended CPUID function supported: < 0x80000004 Then Return
632  v = x86_model_id
633  cpuid(0x80000002, & v[0], & v[1], & v[2], & v[3])
634  cpuid(0x80000003, & v[4], & v[5], & v[6], & v[7])
635  cpuid(0x80000004, & v[8], & v[9], & v[10], & v[11])
636  x86_model_id[48] = 0
639  p = q = s = x86_model_id[0]
641  When p == ' ' cycle
642  p++
644  When p cycle
646  If Not Note: isspace() must return false for %NUL-terminator ( * p) Then s = q
649  q++ = p++
652  *(s + 1) = '\0'
Caller
NameDescribe
generic_identify