Function report | 
Source Code:arch\x86\kernel\cpuid.c | 
Create Date:2022-07-28 08:19:15 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:cpuid_read
Proto:static ssize_t cpuid_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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) | 
| 86 | If err Then Break | 
| 88 | wait_for_completion( & done) | 
| 89 | If copy_to_user(tmp, & regs, 16) Then | 
| 93 | tmp += 16 | 
| 94 | bytes += 16 | 
| 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  |