devm_cxl_add_port(9)
π devm_cxl_add_port(9) β from the Kernel API Manual, bestie β¨
okay so picture this: it's giving kernel API manual energy, the header says devm_cxl_add_port(9), and the whole vibe is "register a cxl_port in the CXL memory decode hierarchy." That's it, that's the plot π no cap, that's the NAME right there.
Basically this function is the main character of port registration β it's out here putting a cxl_port into the CXL memory decode hierarchy, with all the devm-managed housekeeping handled for you. Obsessed π«Ά
β¨ SYNOPSIS β¨
struct cxl_port * devm_cxl_add_port (struct device *host , struct device *uport_dev , resource_size_t component_reg_phys , struct cxl_dport *parent_dport );
yeah she takes four arguments, and every single one matters, so let's go π
πΈ ARGUMENTS πΈ
hostβ the host device for devm operations. like, this is the device that owns all the devm cleanup magic β¨uport_devβ the "physical" device implementing this upstream port π¦ (yes the quotes around physical are in the original, iykyk)component_reg_physβ (optional), for configurablecxl_portinstances π₯parent_dportβ the next hop up in the CXL memory decode hierarchy, aka who you're reporting to π
π SEE ALSO π
Kernel file ./drivers/cxl/core/port.c cxl core(9), plus the whole friend group of related calls β literally the entire group chat, not me listing all of them π
devm_cxl_add_dport(9)devm_cxl_add_rch_dport(9)cxl_add_ep(9)find_cxl_port_by_dport(9)find_cxl_port_by_uport(9)cxl_decoder_init(9)cxl_root_decoder_alloc(9)cxl_switch_decoder_alloc(9)cxl_endpoint_decoder_alloc(9)cxl_decoder_add_locked(9)cxl_decoder_add(9)__cxl_driver_register(9)cxl_endpoint_get_perf_coordinates(9)
real talk:component_reg_physis straight-up marked (optional) in the original, so don't come for me if you skip it for the configurablecxl_portinstances π
okay that's the whole page, no crumbs left π and for the cute sign-off: this little icon lives in the source tree at ./drivers/cxl/core, it's dated October 2026, and the footer-repping title is devm_cxl_add_port(9) β periodt π
β¨π
π¦ 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