函数逻辑报告 |
Source Code:arch\x86\kernel\cpuid.c |
Create Date:2022-07-27 09:19:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:cpuid_read
函数原型:static ssize_t cpuid_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file | |
| char __user * | buf | |
| size_t | count | |
| loff_t * | ppos |
| 67 | cpu等于iminor(file_inode(file)) |
| 69 | bytes等于0 |
| 70 | err等于0 |
| 75 | init_completion( & done) |
| 77 | call_single_data_t csd = {func = cpuid_smp_cpuid, info = & cmd, } |
| 85 | err等于smp_call_function_single_async(cpu, & csd) |
| 88 | wait_for_completion( & done) |
| 89 | 如果copy_to_user(tmp, & regs, 16)则 |
| 93 | tmp加等于16 |
| 94 | bytes加等于16 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |