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

Name:dtgroup_cbm_to_size - Translate CBM to size in bytes*@r: RDT resource to which @d belongs.*@d: RDT domain instance.*@cbm: bitmask for which the size should be computed.* The bitmask provided associated with the RDT domain instance @d will be

Proto:unsigned int rdtgroup_cbm_to_size(struct rdt_resource *r, struct rdt_domain *d, unsigned long cbm)

Type:unsigned int

Parameter:

TypeParameterName
struct rdt_resource *r
struct rdt_domain *d
unsigned longcbm
1262  size = 0
1265  num_b = bitmap_weight( & cbm, cbm_len)
1266  ci = get_cpu_cacheinfo(cpumask_any - pick a "random" cpu from *srcp*@srcp: the input cpumask* Returns >= nr_cpu_ids if no cpus set.( & cpu_mask))
1267  When i < num_leaves cycle
1268  If level == cache_level Then
1269  size = size / cbm_len * num_b
1270  Break
1274  Return size
Caller
NameDescribe
rdtgroup_size_showdtgroup_size_show - Display size in bytes of allocated regions* The "size" file mirrors the layout of the "schemata" file, printing the* size in bytes of each region instead of the capacity bitmask.
pseudo_lock_region_initpseudo_lock_region_init - Initialize pseudo-lock region information*@plr: pseudo-lock region* Called after user provided a schemata to be pseudo-locked. From the* schemata the &struct pseudo_lock_region is on entry already initialized