函数逻辑报告

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

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

函数原型:unsigned int rdtgroup_cbm_to_size(struct rdt_resource *r, struct rdt_domain *d, unsigned long cbm)

返回类型:unsigned int

参数:

类型参数名称
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 i小于num_leaves循环
1268  如果level恒等于cache_level
1269  size等于sizecbm_lennum_b
1270  退出
1274  返回:size
调用者
名称描述
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