| Function report | 
| Source Code: arch\x86\kernel\cpu\resctrl\ctrlmondata.c | Create Date:2022-07-28 08:12:47 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Check whether MBA bandwidth percentage value is correct. The value is* checked against the minimum and maximum bandwidth values specified by* the hardware. The allocated bandwidth percentage is rounded to the next* control step available on the hardware.
Proto:static bool bw_validate_amd(char *buf, unsigned long *data, struct rdt_resource *r)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | buf | |
| unsigned long * | data | |
| struct rdt_resource * | r | 
| 37 | If ret Then | 
| 38 | rdt_last_cmd_printf("Non-decimal digit in MB value %s\n", buf) | 
| 39 | Return false | 
| 42 | If bw < min_bw || bw > default_ctrl Then | 
| 43 | rdt_last_cmd_printf("MB value %ld out of range [%d,%d]\n", bw, min_bw, default_ctrl) | 
| 45 | Return false | 
| 49 | Return true | 
| Name | Describe | 
|---|---|
| parse_bw_amd | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |