STRUCT CXL_SWITCH_DECODER(9)
π struct cxl_switch_decoder(9) π
okay bestie, welcome to the Kernel API Manual entry for struct cxl_switch_decoder β it's literally the Switch specific CXL HDM Decoder. π
β¨ NAME β¨
struct cxl_switch_decoder β Switch specific CXL HDM Decoder. no cap, that's the name π
πΈ SYNOPSIS πΈ
okay so here's the literal struct, bestie β pls don't retype it wrong π
struct cxl_switch_decoder {
struct cxl_decoder cxld;
int nr_targets;
struct cxl_dport *target[];
};
π Members π
the little squad inside the struct, one by one:
cxldβ basecxl_decoderobjectnr_targetsβ number of elements intargettargetβ active ordered target list in current decoder configuration
π¦ Description π¦
so the switch decoder type represents the decoder instances of cxl_port's that route from the root of a CXL memory decode topology to the endpoints. π«Ά
they come in two flavors: root-level decoders, statically defined by platform firmware, and mid-level decoders, where interleave-granularity, interleave-width, and the target list are mutable. periodt π
π₯ SEE ALSO π₯
go read these too, iykyk π
- Kernel file:
./drivers/cxl/cxl.h cxl objects(9)struct cxl_decoder(9)struct cxl_endpoint_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_region_ref(9)struct cxl_endpoint_dvsec_info(9)
and that's the whole page, bestie π«Ά signing off from source ./drivers/cxl, dated October 2026, still serving struct cxl_switch_decoder(9) β¨π
π¦ 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