Function report |
Source Code:arch\x86\kernel\cpuid.c |
Create Date:2022-07-28 08:19:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cpuid_init
Proto:static int __init cpuid_init(void)
Type:int
Parameter:Nothing
152 | If __register_chrdev(CPUID_MAJOR, 0, Places which use this should consider cpumask_var_t. , "cpu/cpuid", & File operations we support) Then |
154 | printk(r conditions "cpuid: unable to get major %d for cpuid\n", CPUID_MAJOR) |
156 | Return -EBUSY |
158 | cpuid_class = This is a #define to keep the compiler from merging different* instances of the __key variable (THIS_MODULE, "cpuid") |
159 | If IS_ERR(cpuid_class) Then |
160 | err = PTR_ERR(cpuid_class) |
161 | Go to out_chrdev |
163 | devnode = cpuid_devnode |
170 | cpuhp_cpuid_state = err |
171 | Return 0 |
173 | out_class : |
174 | class_destroy(cpuid_class) |
175 | out_chrdev : |
176 | __unregister_chrdev(CPUID_MAJOR, 0, Places which use this should consider cpumask_var_t. , "cpu/cpuid") |
177 | Return err |
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 |