STRUCT TYPEC_CONNECTOR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is struct typec_connector(9) from the Kernel API Manual, and it's literally the Representation of Type-C port for external drivers πŸ’…βœ¨

✨ SYNOPSIS ✨

struct typec_connector {
    void (*attach)(struct typec_connector *con, struct device *dev);
    void (*deattach)(struct typec_connector *con, struct device *dev);
};

πŸŽ€ Members πŸŽ€

  • attach β€” notification about device removal πŸ‘€
  • deattach β€” notification about device removal πŸ‘€
yes bestie, both of those say β€œnotification about device removal” in the source β€” we are keeping it exactly as written, no edits, periodt 🫢

πŸ’– Description πŸ’–

Drivers that control the USB and other ports (DisplayPorts, etc.) that are connected to the Type-C connectors can use these callbacks to inform the Type-C connector class about connections and disconnections πŸ”Œβœ¨

That information can then be used by the typec-port drivers to power on or off parts that are needed or not needed β€” for example, in USB mode, if a USB2 device is enumerated, USB3 components (retimers, phys, and what have you) do not need to be powered on πŸ”₯

The attached (enumerated) devices will be liked with the typec-partner device 🫢 (and yes, the page says liked β€” not me, I'm just preserving the source, iykyk 😭)

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/usb/typec.h
  • struct typec_operations(9)

cute little sign-off bestie: source/version is ./include/linux/usb, date is October 2026, and the page is struct typec_connector(9) β€” mwah, slay and read your kernel docs πŸ’‹βœ¨

πŸ“¦ where this page comes from