函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\mce\core.c |
Create Date:2022-07-27 09:01:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Per CPU device init. All of the CPUs still share the same bank device:
函数原型:static int mce_device_create(unsigned int cpu)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | cpu |
2330 | 如果非mce_available( & common cpu data for all cpus )则返回:负EIO |
2333 | dev等于per_cpu(mce_device, cpu) |
2334 | 如果dev则返回:0 |
2341 | bus等于mce_subsys |
2342 | release等于mce_device_release |
2345 | 如果err则 |
2346 | put_device(dev) |
2347 | 返回:err |
2350 | 以mce_device_attrs[i]循环 |
2351 | err等于device_create_file(dev, mce_device_attrs[i]) |
2355 | 以j小于per_cpu(mce_num_banks, cpu)循环 |
2356 | err等于device_create_file(dev, & device attribute ) |
2360 | 设置CPU信息 |
2361 | per_cpu(mce_device, cpu)等于dev |
2363 | 返回:0 |
2364 | error2 : |
2366 | device_remove_file(dev, & device attribute ) |
2367 | error : |
2369 | device_remove_file(dev, mce_device_attrs[i]) |
2371 | device_unregister(dev) |
2373 | 返回:err |
名称 | 描述 |
---|---|
mce_cpu_online |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |