rdtgroup_cbm_overlaps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 instance d belongs to. it's giving "which resource are we even talking about" energy 🌈
  • d β€” the domain instance we're testing closid against. main character of the overlap test fr fr πŸ‘‘
  • cbm β€” the capacity bitmask being tested. that's the mask, bestie, the actual bits πŸ’…
  • closid β€” the intended closid for cbm. 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 it
  • false β€” 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:


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