函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\mce\amd.c |
Create Date:2022-07-27 09:04:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:threshold_create_bank
函数原型:static int threshold_create_bank(unsigned int cpu, unsigned int bank)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | cpu | |
unsigned int | bank |
1305 | dev等于per_cpu(mce_device, cpu) |
1306 | struct amd_northbridge * nb = NULL |
1307 | struct threshold_bank * b = NULL |
1309 | err等于0 |
1314 | 如果is_shared_bank(bank)则 |
1315 | nb等于node_to_amd_nb(amd_get_nb_id(cpu)) |
1325 | per_cpu(threshold_banks, cpu)[bank]等于b |
1328 | err等于__threshold_add_blocks(b) |
1330 | 转到:out |
1335 | 如果非b则 |
1341 | 如果非kobj则 |
1346 | 如果is_shared_bank(bank)则 |
1350 | 如果nb则 |
1360 | per_cpu(threshold_banks, cpu)[bank]等于b |
1362 | 返回:0 |
1364 | out_free : |
1365 | 释放内存 |
1367 | out : |
1368 | 返回:err |
名称 | 描述 |
---|---|
mce_threshold_create_device | reate dir/files for all valid threshold banks |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |