Function report |
Source Code:arch\x86\kernel\cpu\mce\amd.c |
Create Date:2022-07-28 08:03:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:allocate_threshold_blocks
Proto:static int allocate_threshold_blocks(unsigned int cpu, struct threshold_bank *tb, unsigned int bank, unsigned int block, unsigned int address)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | cpu | |
struct threshold_bank * | tb | |
unsigned int | bank | |
unsigned int | block | |
unsigned int | address |
1206 | struct threshold_block * b = NULL |
1213 | If rdmsr_safe_on_cpu(cpu, address, & low, & high) Then Return 0 |
1216 | If Not (high & MASK_VALID_HI) Then |
1223 | If Not (high & MASK_CNTP_HI) || high & MASK_LOCKED_HI Then Go to recurse |
1227 | b = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
1231 | Number within bank = block |
1233 | CPU which controls MCA bank = cpu |
1234 | MSR address for the block = address |
1235 | Enable/Disable APIC interrupt = 0 |
1239 | If Bank can generate an interrupt. Then |
1240 | use default_groups instead [2] = attr |
1241 | Enable/Disable APIC interrupt = 1 |
1242 | Else |
1243 | use default_groups instead [2] = NULL |
1248 | If blocks Then list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks. |
1256 | recurse : |
1258 | If Not address Then Return 0 |
1268 | Return err |
1270 | out_free : |
1271 | If b Then |
1276 | Return err |
Name | Describe |
---|---|
allocate_threshold_blocks | |
threshold_create_bank |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |