STRUCT CXL_DPORT(9)
π struct cxl_dport(9) π
okay bestie, welcome to the Kernel API Manual β weβre looking at the CXL downstream port struct, and itβs lowkey iconic. no cap, every field is here. π
β¨ NAME β¨
struct cxl_dport β a CXL downstream port, periodt.
π SYNOPSIS π
struct cxl_dport {
struct device *dport_dev;
struct cxl_register_map reg_map;
int port_id;
struct cxl_rcrb_info rcrb;
bool rch;
struct cxl_port *port;
struct cxl_regs regs;
struct access_coordinate coord[ACCESS_COORDINATE_MAX];
long link_latency;
int gpf_dvsec;
};
π Members π
okay so these are the fields, and we are not skipping any of them. main character energy only. π
dport_devβ PCI bridge or firmware device representing the downstream link. literally the device vibe check for the link.reg_mapβ component and ras register mapping parameters. the mapping details live here, bestie.port_idβ unique hardware identifier for dport in decoder target list. itβs giving βI know exactly which port I am.β π₯rcrbβ Data about the Root Complex Register Block layout. yes, all the layout info. πrchβ Indicate whether this dport was enumerated in RCH or VH mode. tiny bool, big βwhich mode was I in?β energy.portβ reference to cxl_port that contains this downstream port. it points back to its port parent, slay. π«Άregsβ Dport parsed register blocks. parsed and present. β¨coordβ access coordinates (bandwidth and latency performance attributes). performance attributes stored in an array, iykyk.link_latencyβ calculated PCIe downstream latency. the latency math has already been done, no stress. πgpf_dvsecβ Cached GPF port DVSEC. cached, cute, done. π¦
π SEE ALSO π
peep these, bestie β the whole friend group is here:
- 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_ep(9)struct cxl_region_ref(9)struct cxl_endpoint_dvsec_info(9)
signed off from ./drivers/cxl, dated October 2026 β mwah, kisses, go be iconic with your downstream ports ππΈ
π¦ 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