函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\mce\amd.c |
Create Date:2022-07-27 09:03:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:allocate_threshold_blocks
函数原型:static int allocate_threshold_blocks(unsigned int cpu, struct threshold_bank *tb, unsigned int bank, unsigned int block, unsigned int address)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned int | cpu | |
| struct threshold_bank * | tb | |
| unsigned int | bank | |
| unsigned int | block | |
| unsigned int | address |
| 1206 | struct threshold_block * b = NULL |
| 1213 | 如果rdmsr_safe_on_cpu(cpu, address, & low, & high)则返回:0 |
| 1216 | 如果非high按位与MASK_VALID_HI的值则 |
| 1223 | 如果非high按位与MASK_CNTP_HI的值或high按位与MASK_LOCKED_HI则转到:recurse |
| 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 | 如果 Bank can generate an interrupt. 则 |
| 1240 | use default_groups instead [2]等于attr |
| 1241 | Enable/Disable APIC interrupt 等于1 |
| 1242 | 否则 |
| 1243 | use default_groups instead [2] = NULL |
| 1246 | 初始化链表头 |
| 1256 | recurse : |
| 1258 | 如果非address则返回:0 |
| 1265 | 如果b则通过发送一个uevent通知用户空间 |
| 1268 | 返回:err |
| 1270 | out_free : |
| 1271 | 如果b则 |
| 1276 | 返回:err |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |