rdtgroup_cbm_overlaps(9)
π rdtgroup_cbm_overlaps(9) π
okay bestie, welcome to the rdtgroup_cbm_overlaps page from the Kernel API Manual β yes it's a kernel function, yes it's a whole vibe, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
rdtgroup_cbm_overlaps β literally just answers the question: does this CBM overlap with some other use of the hardware? π
πΈ SYNOPSIS πΈ
bool rdtgroup_cbm_overlaps (struct resctrl_schema *s , struct
rdt_ctrl_domain *d , unsigned long cbm , int closid , bool exclusive );
no cap, that's the whole signature β every type, every comma-that-has-a-space-before-it, all of it, exactly as it lives in the kernel π
π ARGUMENTS π
sβ the schema for the resource that domain instancedbelongs to. it's giving "which resource are we even talking about" energy πdβ the domain instance we're testingclosidagainst. main character of the overlap test fr fr πcbmβ the capacity bitmask being tested. that's the mask, bestie, the actual bits πclosidβ the intendedclosidforcbm. like, where this bitmask wants to live π¦exclusiveβ only check if it overlaps with exclusive resource groups. so like, a narrower vibe check π₯
β DESCRIPTION β
okay so here's the lore π
resources that can be allocated using a CBM can use the CBM to control the overlap of those allocations, and rdtgroup_cmb_overlaps is the test for overlap β¨
but wait β the overlap test is not limited to the specific resource that the CBM was intended for, though π³ when you're dealing with CDP resources that share the underlying hardware, the overlap check should be performed on the CDP resource sharing the hardware also. yep, that's the whole point β check the sibling too, iykyk π
for the actual deets of the overlap test, go look at the description of __rdtgroup_cbm_overlaps. it's the source of truth, the blueprint, the og π
π RETURN π
trueβ CBM overlap detected π¨ not itfalseβ there is no overlap π we love a clean slate
π SEE ALSO π
kernel file ./fs/resctrl/rdtgroup.c β that's the home base bestie π
and the whole friend group:
closid_allocated(9)rdtgroup_mode_by_closid(9)rdtgroup_mode_str(9)rdtgroup_remove(9)rdtgroup_tasks_assigned(9)__rdtgroup_cbm_overlaps(9)rdtgroup_mode_test_exclusive(9)rdtgroup_cbm_to_size(9)rdtgroup_kn_mode_restrict(9)rdtgroup_kn_mode_restore(9)mon_get_kn_priv(9)mon_put_kn_priv(9)cbm_ensure_valid(9)mongrp_reparent(9)domain_setup_l3_mon_state(9)resctrl_exit(9)
aaaaand that's the page π
this one's sourced from ./fs/resctrl, version-dated October 2026, and it slayed the whole way through. periodt πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms