Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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
165  err = puhp_setup_state - Setup hotplug state callbacks with calling the callbacks*@state: The state for which the calls are installed*@name: Name of the callback (will be used in debug output)*@startup: startup callback function*@teardown: teardown callback
167  If err < 0 Then Go to out_class
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