函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\umwait.c |
Create Date:2022-07-27 08:57:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:enable_c02_store
函数原型:static ssize_t enable_c02_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct device * | dev | |
| struct device_attribute * | attr | |
| const char * | buf | |
| size_t | count |
| 151 | mutex_lock( & Serialize access to umwait_control_cached and IA32_UMWAIT_CONTROL MSR in* the sysfs write functions.) |
| 153 | ctrl等于READ_ONCE(Cache IA32_UMWAIT_CONTROL MSR. This is a systemwide control. By default,* umwait max time is 100000 in TSC-quanta and C0.2 is enabled) |
| 154 | 如果c02_enable不等于When bit 0 in IA32_UMWAIT_CONTROL MSR is 1, C0.2 is disabled.* Otherwise, C0.2 is enabled.则umwait_update_control(ctrl, c02_enable) |
| 157 | mutex_unlock( & Serialize access to umwait_control_cached and IA32_UMWAIT_CONTROL MSR in* the sysfs write functions.) |
| 159 | 返回:count |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |