Function report |
Source Code:arch\x86\kernel\cpu\resctrl\ctrlmondata.c |
Create Date:2022-07-28 08:12:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Read one cache bit mask (hex). Check that it is valid for the current* resource type.
Proto:int parse_cbm(struct rdt_parse_data *data, struct rdt_resource *r, struct rdt_domain *d)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rdt_parse_data * | data | |
| struct rdt_resource * | r | |
| struct rdt_domain * | d |
| 200 | If have_new_ctrl Then |
| 201 | rdt_last_cmd_printf("Duplicate domain %d\n", id) |
| 202 | Return -EINVAL |
| 209 | If mode == RDT_MODE_PSEUDO_LOCKSETUP && rdtgroup_pseudo_locked_in_hierarchy(d) Then |
| 211 | rdt_last_cmd_puts("Pseudo-locked region in hierarchy\n") |
| 212 | Return -EINVAL |
| 215 | If Not cbm_validate(buf, & cbm_val, r) Then Return -EINVAL |
| 218 | If ( mode == RDT_MODE_EXCLUSIVE || mode == RDT_MODE_SHAREABLE ) && rdtgroup_cbm_overlaps_pseudo_locked(d, cbm_val) Then |
| 221 | rdt_last_cmd_puts("CBM overlaps with pseudo-locked region\n") |
| 222 | Return -EINVAL |
| 230 | rdt_last_cmd_puts("Overlaps with exclusive group\n") |
| 231 | Return -EINVAL |
| 235 | If mode == RDT_MODE_EXCLUSIVE || mode == RDT_MODE_PSEUDO_LOCKSETUP Then |
| 237 | rdt_last_cmd_puts("Overlaps with other group\n") |
| 238 | Return -EINVAL |
| 243 | have_new_ctrl = true |
| 245 | Return 0 |
| 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 |