函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mce_threshold_remove_device

函数原型:int mce_threshold_remove_device(unsigned int cpu)

返回类型:int

参数:

类型参数名称
unsigned intcpu
1444 bank小于per_cpu(mce_num_banks, cpu)循环
1445  如果非per_cpu(bank_map, cpu)按位与1左移bank位的值则继续下一循环
1447  threshold_remove_bank(cpu, bank)
1449  释放内存
1450  per_cpu(threshold_banks, cpu) = NULL
1451  返回:0
调用者
名称描述
mce_threshold_create_devicereate dir/files for all valid threshold banks