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

Name:bm_ensure_valid - Enforce validity on provided CBM*@_val: Candidate CBM*@r: RDT resource to which the CBM belongs* The provided CBM represents all cache portions available for use

Proto:static unsigned int cbm_ensure_valid(unsigned int _val, struct rdt_resource *r)

Type:unsigned int

Parameter:

TypeParameterName
unsigned int_val
struct rdt_resource *r
2498  cbm_len = cbm_len
2500  val = _val
2502  If Not val Then Return 0
2505  first_bit = find the first set bit in a memory region( & val, cbm_len)
2506  zero_bit = Find the next zero bit in a memory region.
2509  bitmap_clear( & val, zero_bit, cbm_len - zero_bit)
2510  Return val
Caller
NameDescribe
__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.