函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-27 09:12:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Initialize 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.
函数原型:static int __init_one_rdt_domain(struct rdt_domain *d, struct rdt_resource *r, unsigned int closid)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct rdt_domain * | d | |
| struct rdt_resource * | r | |
| unsigned int | closid |
| 2522 | struct rdt_resource * r_cdp = NULL |
| 2523 | struct rdt_domain * d_cdp = NULL |
| 2531 | have_new_ctrl = false |
| 2532 | new_ctrl等于shareable_bits |
| 2533 | used_b等于shareable_bits |
| 2535 | 以i小于closids_supported()循环 |
| 2568 | new_ctrl等于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 |
| 2574 | 如果bitmap_weight( & tmp_cbm, cbm_len)小于min_cbm_bits则 |
| 2575 | rdt_last_cmd_printf("No space on %s:%d\n", name, id) |
| 2576 | 返回:负ENOSPC |
| 2578 | have_new_ctrl = true |
| 2580 | 返回:0 |
| 名称 | 描述 |
|---|---|
| rdtgroup_init_cat | Initialize cache resources with default values |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |