函数逻辑报告

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:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int rdt_cdp_peer_get(struct rdt_resource *r, struct rdt_domain *d, struct rdt_resource **r_cdp, struct rdt_domain **d_cdp)

返回类型:int

参数:

类型参数名称
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  :rid恒等于RDT_RESOURCE_L3DATA
1002  _r_cdp等于rdt_resources_all[RDT_RESOURCE_L3CODE]
1003  退出
1004  :rid恒等于RDT_RESOURCE_L3CODE
1005  _r_cdp等于rdt_resources_all[RDT_RESOURCE_L3DATA]
1006  退出
1007  :rid恒等于RDT_RESOURCE_L2DATA
1008  _r_cdp等于rdt_resources_all[RDT_RESOURCE_L2CODE]
1009  退出
1010  :rid恒等于RDT_RESOURCE_L2CODE
1011  _r_cdp等于rdt_resources_all[RDT_RESOURCE_L2DATA]
1012  退出
1013  默认
1014  ret等于负ENOENT
1015  转到: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  如果WARN_ON(是错误或空)则
1029  _r_cdp = NULL
1030  ret等于负EINVAL
1033  out :
1034  r_cdp等于_r_cdp
1035  d_cdp等于_d_cdp
1037  返回:ret
调用者
名称描述
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.