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:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dt_cdp_peer_get - Retrieve CDP peer if it exists*@r: RDT resource to which RDT domain @d belongs*@d: Cache instance for which a CDP peer is requested*@r_cdp: RDT resource that shares hardware with @r (RDT resource peer)* Used to return the result

Proto:static int rdt_cdp_peer_get(struct rdt_resource *r, struct rdt_domain *d, struct rdt_resource **r_cdp, struct rdt_domain **d_cdp)

Type:int

Parameter:

TypeParameterName
struct rdt_resource *r
struct rdt_domain *d
struct rdt_resource **r_cdp
struct rdt_domain **d_cdp
996  struct rdt_resource * _r_cdp = NULL
997  struct rdt_domain * _d_cdp = NULL
998  ret = 0
1001  Case rid == RDT_RESOURCE_L3DATA
1002  _r_cdp = rdt_resources_all[RDT_RESOURCE_L3CODE]
1003  Break
1004  Case rid == RDT_RESOURCE_L3CODE
1005  _r_cdp = rdt_resources_all[RDT_RESOURCE_L3DATA]
1006  Break
1007  Case rid == RDT_RESOURCE_L2DATA
1008  _r_cdp = rdt_resources_all[RDT_RESOURCE_L2CODE]
1009  Break
1010  Case rid == RDT_RESOURCE_L2CODE
1011  _r_cdp = rdt_resources_all[RDT_RESOURCE_L2DATA]
1012  Break
1013  Default
1014  ret = -ENOENT
1015  Go to out
1027  _d_cdp = dt_find_domain - Find a domain in a resource that matches input resource id* Search resource r's domain list to find the resource id. If the resource* id is found in a domain, return the domain. Otherwise, if requested by
1028  If WARN_ON(IS_ERR_OR_NULL(_d_cdp)) Then
1029  _r_cdp = NULL
1030  ret = -EINVAL
1033  out :
1034  r_cdp = _r_cdp
1035  d_cdp = _d_cdp
1037  Return ret
Caller
NameDescribe
rdtgroup_cbm_overlapsdtgroup_cbm_overlaps - Does CBM overlap with other use of hardware*@r: Resource to which domain instance @d belongs
__init_one_rdt_domainInitialize cache resources per RDT domain* Set the RDT domain up to start off with all usable allocations. That is,* all shareable and unused bits. All-zero CBM is invalid.