函数逻辑报告

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

函数名称:set_cmci_disabled

函数原型:static ssize_t set_cmci_disabled(struct device *s, struct device_attribute *attr, const char *buf, size_t size)

返回类型:ssize_t

参数:

类型参数名称
struct device *s
struct device_attribute *attr
const char *buf
size_tsize
2247  如果kstrtou64(buf, 0, & new)小于0则返回:负EINVAL
2250  mutex_lock( & sysfs synchronization )
2251  如果cmci_disabled按位异或非非new
2252  如果new
2255  cmci_disabled = true
2256  否则
2258  cmci_disabled = false
2262  mutex_unlock( & sysfs synchronization )
2264  返回:size