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:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_name

Proto:static const char *get_name(unsigned int bank, struct threshold_block *b)

Type:char

Parameter:

TypeParameterName
unsigned intbank
struct threshold_block *b
1176  If Not * Indicates that overflow conditions are not fatal, when set. Then
1177  If b && bank == 4 Then Return bank4_names(b)
1180  Return th_names[bank]
1183  bank_type = smca_get_bank_type(bank)
1184  If bank_type >= N_SMCA_BANK_TYPES Then Return NULL
1187  If b && bank_type == SMCA_UMC Then
1188  If Number within bank < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(smca_umc_block_names) Then Return smca_umc_block_names[ Number within bank ]
1190  Return NULL
1193  If count == 1 Then Return smca_get_name(bank_type)
1196  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
1199  Return buf_mcatype
Caller
NameDescribe
allocate_threshold_blocks
threshold_create_bank