STRUCT RMID_READ(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŽ€ NAME ๐ŸŽ€

okay so bestie, this is the struct rmid_read(9) page from the Kernel API Manual, and itโ€™s literally all about struct rmid_read โ€” Data passed across smp_call*() to read event count. no cap, thatโ€™s the whole vibe. ๐Ÿ’…

โœจ SYNOPSIS โœจ

hereโ€™s the struct in all its glory โ€” copy it exactly, character for character:

       struct rmid_read {
           struct rdtgroup         *rgrp;
           struct rdt_resource     *r;
           struct rdt_domain_hdr   *hdr;
           struct mon_evt          *evt;
           bool first;
           struct cacheinfo        *ci;
           bool is_mbm_cntr;
           int err;
           u64 val;
           void *arch_mon_ctx;
        };

๐Ÿงš Members ๐Ÿงš

  • rgrp โ€” the Resource group for which the counter is being read. If itโ€™s a parent resource group, then its event count gets summed with the count from all its child resource groups. family reunion math, fr fr ๐Ÿ‘‘
  • r โ€” the Resource describing the properties of the event being read. itโ€™s giving โ€œwhat are we even readingโ€ energy.
  • hdr โ€” Header of the domain that the counter should be read from. If itโ€™s NULL, then sum all domains in r sharing L3 ci.id. okay periodt.
  • evt โ€” Which monitor event to read. pick your fave, bestie.
  • first โ€” Initialize MBM counter when true. tiny but iconic.
  • ci โ€” Cacheinfo for L3. Only set when hdr is NULL. Used when summing domains. lowkey the helper for the NULL case ๐Ÿซถ
  • is_mbm_cntr โ€” true if "mbm_event" counter assignment mode is enabled and it is an MBM event. yes, it said what it said ๐Ÿ’€
  • err โ€” Error encountered when reading counter. if this pops off, something went sideways ๐Ÿ˜ญ
  • val โ€” Returned value of event counter. If rgrp is a parent resource group, val includes the sum of event counts from its child resource groups. If hdr is NULL, val includes the sum of all domains in r sharing ci.id, (summed across child resource groups if rgrp is a parent resource group). thatโ€™s the whole tea โ˜•
  • arch_mon_ctx โ€” Hardware monitor allocated for this read request (MPAM only). special guest star energy ๐ŸŒŸ

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

go peek at the Kernel file ./fs/resctrl/internal.h, plus cpumask_any_housekeeping(9), struct mon_evt(9), struct mon_data(9), enum rdtgrp_mode(9), struct mongroup(9), struct rdtgroup(9), struct rftype(9), and struct mbm_state(9). iykyk ๐ŸŒˆ


mwah ๐Ÿ’‹ โ€” this page lives in ./fs/resctrl, stamped October 2026, and itโ€™s literally struct rmid_read(9). bye bestie ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from