函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-27 09:11:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static bool __rdtgroup_cbm_overlaps(struct rdt_resource *r, struct rdt_domain *d, unsigned long cbm, int closid, bool exclusive)

返回类型:bool

参数:

类型参数名称
struct rdt_resource *r
struct rdt_domain *d
unsigned longcbm
intclosid
boolexclusive
1069  如果非exclusive
1070  ctrl_b等于shareable_bits
1071  如果bitmap_intersects( & cbm, & ctrl_b, cbm_len)则返回:true
1076  ctrl等于ctrl_val
1077 i小于closids_supported()循环
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  如果bitmap_intersects( & cbm, & ctrl_b, cbm_len)则
1083  如果exclusive
1084  如果mode恒等于RDT_MODE_EXCLUSIVE则返回:true
1086  继续下一循环
1088  返回:true
1093  返回:false
调用者
名称描述
rdtgroup_cbm_overlapsdtgroup_cbm_overlaps - Does CBM overlap with other use of hardware*@r: Resource to which domain instance @d belongs