函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:struct rdt_domain *rdt_find_domain(struct rdt_resource *r, int id, struct list_head **pos)

返回类型:struct rdt_domain

参数:

类型参数名称
struct rdt_resource *r
intid
struct list_head **pos
448  如果id小于0则返回:错误号
452  d等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(l, structrdt_domain, list)
454  如果id恒等于id则返回:d
457  如果id小于id退出
461  如果pospos等于l
464  返回:NULL
调用者
名称描述
domain_add_cpudomain_add_cpu - Add a cpu to a resource's domain list.* If an existing domain in the resource r's domain list matches the cpu's* resource id, add the cpu in the domain.* Otherwise, a new domain is allocated and inserted into the right position
domain_remove_cpu
rdt_cdp_peer_getdt_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
rdtgroup_mondata_show