ENUM RDTGRP_MODE(9)
π¦ enum rdtgrp_mode(9) π¦
okay bestie, so this is from the Kernel API Manual and honestly it's giving lowkey iconic resource-group energy π we're talking about an enum β yes, a whole enum β that describes the mode of an RDT resource group. Don't worry, I gotchu, we're gonna walk through it together β¨
β¨ NAME β¨
enum rdtgrp_mode β literally just the Mode of a RDT resource group π
πΈ SYNOPSIS πΈ
enum rdtgrp_mode {
RDT_MODE_SHAREABLE ,
RDT_MODE_EXCLUSIVE ,
RDT_MODE_PSEUDO_LOCKSETUP ,
RDT_MODE_PSEUDO_LOCKED ,
RDT_NUM_MODES
};
π CONSTANTS π
π RDT_MODE_SHAREABLE
This resource group is in its sharing era β it allows sharing of its allocations π«Ά
π₯ RDT_MODE_EXCLUSIVE
The opposite vibe, fr fr β no sharing of this resource group's allocations allowed. Not even a little. π
π RDT_MODE_PSEUDO_LOCKSETUP
This resource group is gonna be used for Pseudo-Locking β¨ (it's preparing, it's in its setup arc)
π RDT_MODE_PSEUDO_LOCKED
No sharing of this resource group's allocations allowed AND the allocations are Cache Pseudo-Locked. Double whammy, no cap π
β RDT_NUM_MODES
The total number of modes β just the headcount, the roster count, the "how many of us are there" number π§
π« DESCRIPTION π«
So the mode of a resource group is what lets you control the allowed overlap between allocations associated with different resource groups (aka classes of service). You, the user, can modify the mode of a resource group by writing to the "mode" resctrl file associated with the resource group. That's the whole move π
The "shareable", "exclusive", and "pseudo-locksetup" modes are set by writing the appropriate text to the "mode" file. Periodt.
And a resource group enters "pseudo-locked" mode after the schemata is written while the resource group is in "pseudo-locksetup" mode. It's giving glow-up pipeline, honestly π
π¦ SEE ALSO π¦
- Kernel file
./fs/resctrl/internal.h cpumask_any_housekeeping(9)struct mon_evt(9)struct mon_data(9)struct rmid_read(9)struct mongroup(9)struct rdtgroup(9)struct rftype(9)struct mbm_state(9)
and that's the whole page bestie π«Ά this gem comes to you from ./fs/resctrl, dated October 2026, under the title enum rdtgrp_mode(9) β go forth and mode responsibly πβ¨π
π¦ 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