Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\msr.c Create Date:2022-07-28 08:18:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:msr_init

Proto:static int __init msr_init(void)

Type:int

Parameter:Nothing

211  If __register_chrdev(MSR_MAJOR, 0, Places which use this should consider cpumask_var_t. , "cpu/msr", & File operations we support) Then
212  pr_err("unable to get major %d for msr\n", MSR_MAJOR)
213  Return -EBUSY
215  msr_class = This is a #define to keep the compiler from merging different* instances of the __key variable (THIS_MODULE, "msr")
216  If IS_ERR(msr_class) Then
217  err = PTR_ERR(msr_class)
218  Go to out_chrdev
220  devnode = msr_devnode
222  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
224  If err < 0 Then Go to out_class
226  cpuhp_msr_state = err
227  Return 0
229  out_class :
230  class_destroy(msr_class)
231  out_chrdev :
232  __unregister_chrdev(MSR_MAJOR, 0, Places which use this should consider cpumask_var_t. , "cpu/msr")
233  Return err