STRUCT TYPEC_CONNECTOR(9)
πΈ 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
- 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