STRUCT CXL_REGION_REF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cxl_region_ref(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so bestie, you're reading the struct cxl_region_ref(9) page from the Kernel API Manual and honestly? it's giving "one little struct, so much lore." Let's get into it. ✨


🌸 NAME 🌸

struct cxl_region_ref β€” literally just tracking a region's interest in a port. that's the whole vibe. a region is πŸ‘€ at a port, and this struct is the receipts.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct cxl_region_ref {
    struct cxl_port *port;
    struct cxl_decoder *decoder;
    struct cxl_region *region;
    struct xarray endpoints;
    int nr_targets_set;
    int nr_eps;
    int nr_targets;
 };

yes, seven members, and we're gonna go through every single one because we don't skip, like, ever. πŸ’…


πŸ‘‘ Members πŸ‘‘

  • port β€” the point in topology where we're gonna install this reference. think of it as picking the exact spot to pin the note up πŸ“Œ
  • decoder β€” the decoder that got assigned for the region in that port, slotted in and everything πŸ’–
  • region β€” the region this reference is actually for. the main character of this struct, no cap ✨
  • endpoints β€” all the cxl_ep references for the region's members beneath the port. the whole friend group, accounted for 🫢
  • nr_targets_set β€” keeps track of how many targets have been programmed during setup. a little progress bar, essentially πŸ“Š
  • nr_eps β€” the number of endpoints that live beneath the port. count 'em πŸ”’
  • nr_targets β€” the number of distinct targets you'd need to reach all nr_eps. yes, "distinct" matters, don't come for me 🎯

🌈 SEE ALSO 🌈

the whole squad, in the kernel file ./drivers/cxl/cxl.h:

  • cxl objects(9)
  • struct cxl_decoder(9)
  • struct cxl_endpoint_decoder(9)
  • struct cxl_switch_decoder(9)
  • struct cxl_rd_ops(9)
  • struct cxl_root_decoder(9)
  • struct cxl_region_params(9)
  • struct cxl_region(9)
  • struct cxl_port(9)
  • struct cxl_root(9)
  • struct cxl_dport(9)
  • struct cxl_ep(9)
  • struct cxl_endpoint_dvsec_info(9)

like, go read them, they're iconic too, iykyk πŸ’œ


okay that's the page!! tysm for reading, you ate that πŸ“ this one lives in ./drivers/cxl and the version/date stamp on it is October 2026 β€” so mark your calendar bestie, see you then πŸ’–πŸ§šβ€β™€οΈπŸ”₯

πŸ“¦ where this page comes from