函数逻辑报告 | 
Source Code:arch\x86\kernel\cpu\resctrl\ctrlmondata.c | 
Create Date:2022-07-27 09:12:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Check whether MBA bandwidth percentage value is correct. The value is* checked against the minimum and max bandwidth values specified by the* hardware. The allocated bandwidth percentage is rounded to the next* control step available on the hardware.
函数原型:static bool bw_validate(char *buf, unsigned long *data, struct rdt_resource *r)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| char * | buf | |
| unsigned long * | data | |
| struct rdt_resource * | r | 
| 85 | 如果非delay_linear则 | 
| 86 | rdt_last_cmd_puts("No support for non-linear MB domains\n") | 
| 87 | 返回:false | 
| 91 | 如果ret则 | 
| 92 | rdt_last_cmd_printf("Non-decimal digit in MB value %s\n", buf) | 
| 93 | 返回:false | 
| 98 | rdt_last_cmd_printf("MB value %ld out of range [%d,%d]\n", bw, min_bw, default_ctrl) | 
| 100 | 返回:false | 
| 104 | 返回:true | 
| 名称 | 描述 | 
|---|---|
| parse_bw_intel | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |