函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static unsigned int cbm_ensure_valid(unsigned int _val, struct rdt_resource *r)

返回类型:unsigned int

参数:

类型参数名称
unsigned int_val
struct rdt_resource *r
2498  cbm_len等于cbm_len
2500  val等于_val
2502  如果非val则返回:0
2505  first_bit等于find_first_bit( & val, cbm_len)
2506  zero_bit等于在内存区域中查找下一个零位
2509  bitmap_clear( & val, zero_bit, cbm_len - zero_bit)
2510  返回:val
调用者
名称描述
__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.