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:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_bank

Proto:static ssize_t set_bank(struct device *s, struct device_attribute *attr, const char *buf, size_t size)

Type:ssize_t

Parameter:

TypeParameterName
struct device *s
struct device_attribute *attr
const char *buf
size_tsize
2193  bank = ank number
2197  If kstrtou64(buf, 0, & new) < 0 Then Return -EINVAL
2200  If bank >= per_cpu(mce_num_banks, id) Then Return -EINVAL
2203  b = per_cpu(mce_banks_array, id)[bank]
2205  If Not initialise bank? Then Return -ENODEV
2208  subevents to enable = new
2209  Reinit MCEs after user configuration changes
2211  Return size