函数逻辑报告

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:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__mcheck_cpu_init_clear_banks

函数原型:static void __mcheck_cpu_init_clear_banks(void)

返回类型:void

参数:

1569  mce_banks等于this_cpu_ptr(mce_banks_array)
1572 i小于Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(mce_num_banks)循环
1573  b等于mce_banks[i]
1575  如果非 initialise bank? 则继续下一循环
1577  wrmsrl(ctl(i), subevents to enable )
1578  wrmsrl(status(i), 0)
调用者
名称描述
mcheck_cpu_initCalled for each booted CPU to set up machine checks.* Must be called with preempt off:
mce_syscore_resumeOn resume clear all MCE state. Don't want to see leftovers from the BIOS.* Only one CPU is active at this time, the others get re-added later using* CPU hotplug:
mce_cpu_restartmce_device: Sysfs support