find_cxl_port_by_dport(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the dport_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 πŸ”₯


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