Function report |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-28 08:12:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int __init_one_rdt_domain(struct rdt_domain *d, struct rdt_resource *r, unsigned int closid)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | When i < closids_supported() cycle |
2537 | mode = dtgroup_mode_by_closid - Return mode of resource group with closid*@closid: closid if the resource group* Each resource group is associated with a @closid |
2538 | If mode == RDT_MODE_PSEUDO_LOCKSETUP Then Continue |
2552 | Else peer_ctl = 0 |
2555 | If mode == RDT_MODE_SHAREABLE Then new_ctrl |= ctrl | peer_ctl |
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 | If bitmap_weight( & tmp_cbm, cbm_len) < min_cbm_bits Then |
2575 | rdt_last_cmd_printf("No space on %s:%d\n", name, id) |
2576 | Return -ENOSPC |
2578 | have_new_ctrl = true |
2580 | Return 0 |
Name | Describe |
---|---|
rdtgroup_init_cat | Initialize cache resources with default values |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |