Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-28 08:11:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__rdtgroup_cbm_overlaps - Does CBM for intended closid overlap with other*@r: Resource to which domain instance @d belongs

Proto:static bool __rdtgroup_cbm_overlaps(struct rdt_resource *r, struct rdt_domain *d, unsigned long cbm, int closid, bool exclusive)

Type:bool

Parameter:

TypeParameterName
struct rdt_resource *r
struct rdt_domain *d
unsigned longcbm
intclosid
boolexclusive
1069  If Not exclusive Then
1070  ctrl_b = shareable_bits
1071  If bitmap_intersects( & cbm, & ctrl_b, cbm_len) Then Return true
1076  ctrl = ctrl_val
1077  When i < closids_supported() cycle
1078  ctrl_b = ctrl
1079  mode = dtgroup_mode_by_closid - Return mode of resource group with closid*@closid: closid if the resource group* Each resource group is associated with a @closid
1082  If bitmap_intersects( & cbm, & ctrl_b, cbm_len) Then
1083  If exclusive Then
1084  If mode == RDT_MODE_EXCLUSIVE Then Return true
1086  Continue
1088  Return true
1093  Return false
Caller
NameDescribe
rdtgroup_cbm_overlapsdtgroup_cbm_overlaps - Does CBM overlap with other use of hardware*@r: Resource to which domain instance @d belongs