函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\core.c Create Date:2022-07-27 09:01:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mcheck_init_device

函数原型:static __init int mcheck_init_device(void)

返回类型:int

参数:

2491  MAYBE_BUILD_BUG_ON(__VIRTUAL_MASK_SHIFT >= 63)
2493  如果非mce_available( & common cpu data for all cpus )则
2494  err等于负EIO
2495  转到:err_out
2498  如果非zalloc_cpumask_var( & mce_device_initialized, GFP_KERNEL)则
2499  err等于负ENOMEM
2500  转到:err_out
2503  mce_init_banks()
2505  err等于subsys_system_register( & mce_subsys, NULL)
2506  如果err则转到:err_out_mem
2509  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
2511  如果err则转到:err_out_mem
2514  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
2516  如果err小于0则转到:err_out_online
2519  register_syscore_ops( & mce_syscore_ops)
2521  返回:0
2523  err_out_online :
2524  puhp_remove_state - Remove hotplug state callbacks and invoke the teardown*@state: The state for which the calls are removed* Removes the callback functions and invokes the teardown callback on* the present cpus which have already reached the @state.
2526  err_out_mem :
2527  释放CPU掩码
2529  err_out :
2530  打印错误信息("Unable to init MCE device (rc: %d)\n", err)
2532  返回:err