| Function report | 
| Source Code: arch\x86\kernel\cpu\resctrl\ctrlmondata.c | Create Date:2022-07-28 08:12:51 | 
| 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 a cache bit mask is valid. AMD allows non-contiguous* bitmasks
Proto:bool cbm_validate_amd(char *buf, unsigned int *data, struct rdt_resource *r)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | buf | |
| unsigned int * | data | |
| struct rdt_resource * | r | 
| 176 | If ret Then | 
| 177 | rdt_last_cmd_printf("Non-hex character in the mask %s\n", buf) | 
| 178 | Return false | 
| 181 | If val > default_ctrl Then | 
| 182 | rdt_last_cmd_puts("Mask out of range\n") | 
| 183 | Return false | 
| 187 | Return true | 
| 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 |