Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\amd.c Create Date:2022-07-28 08:03:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reate dir/files for all valid threshold banks

Proto:int mce_threshold_create_device(unsigned int cpu)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
1459  err = 0
1461  bp = per_cpu(threshold_banks, cpu)
1462  If bp Then Return 0
1465  bp = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
1467  If Not bp Then Return -ENOMEM
1470  per_cpu(threshold_banks, cpu) = bp
1472  When bank < per_cpu(mce_num_banks, cpu) cycle
1473  If Not (per_cpu(bank_map, cpu) & 1 << bank ) Then Continue
1475  err = threshold_create_bank(cpu, bank)
1476  If err Then Go to err
1479  Return err
1480  err :
1481  mce_threshold_remove_device(cpu)
1482  Return err
Caller
NameDescribe
threshold_init_device