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

Name:set_cmci_disabled

Proto:static ssize_t set_cmci_disabled(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
2247  If kstrtou64(buf, 0, & new) < 0 Then Return -EINVAL
2250  mutex_lock( & sysfs synchronization )
2251  If cmci_disabled ^ Not Not new Then
2252  If new Then
2255  cmci_disabled = true
2256  Else
2258  cmci_disabled = false
2262  mutex_unlock( & sysfs synchronization )
2264  Return size