find_cxl_port_by_dport(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual page for find_cxl_port_by_dport(9) β this one literally finds a cxl_port by one of its targets. no cap. πβ¨
β¨ SYNOPSIS β¨
struct cxl_port * find_cxl_port_by_dport (struct device *dport_dev ,
struct cxl_dport **dport );
πΈ ARGUMENTS πΈ
dport_devβ the device representing the dport target. π¦dportβ optional output of the'struct cxl_dport'companion of thedport_dev. π
π«Ά DESCRIPTION π«Ά
So if it finds one, it returns a 'struct cxl_port' with an elevated reference β yes, an extra ref, bestie, so you gotta handle it. Use __free(put_cxl_port) to release it. periodt. π₯
β οΈ real talk: that elevated reference is not a vibe you can ignore β release it with __free(put_cxl_port). π
π₯ SEE ALSO π₯
Kernel file ./drivers/cxl/core/port.ccxl core(9)devm_cxl_add_port(9)devm_cxl_add_dport(9)devm_cxl_add_rch_dport(9)cxl_add_ep(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)
signed, sealed, and slaying from ./drivers/cxl/core for the Kernel API Manual, dated October 2026, all about find_cxl_port_by_dport(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