Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mce_device_remove

Proto:static void mce_device_remove(unsigned int cpu)

Type:void

Parameter:

TypeParameterName
unsigned intcpu
2378  dev = per_cpu(mce_device, cpu)
2381  If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Return
2384  When mce_device_attrs[i] cycle device_remove_file(dev, mce_device_attrs[i])
2387  When i < per_cpu(mce_num_banks, cpu) cycle device_remove_file(dev, & device attribute )
2390  device_unregister(dev)
2391  pumask_clear_cpu - clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
2392  per_cpu(mce_device, cpu) = NULL
Caller
NameDescribe
mce_cpu_online
mce_cpu_pre_down