Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct rdt_parse_data *data
struct rdt_resource *r
struct rdt_domain *d
197  rdtgrp = rdtgrp
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
229  If dtgroup_cbm_overlaps - Does CBM overlap with other use of hardware*@r: Resource to which domain instance @d belongs Then
230  rdt_last_cmd_puts("Overlaps with exclusive group\n")
231  Return -EINVAL
234  If dtgroup_cbm_overlaps - Does CBM overlap with other use of hardware*@r: Resource to which domain instance @d belongs Then
237  rdt_last_cmd_puts("Overlaps with other group\n")
238  Return -EINVAL
242  new_ctrl = cbm_val
243  have_new_ctrl = true
245  Return 0