STRUCT EXTCON_CABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to the struct extcon_cable(9) page from the Kernel API Manual πŸ’– and no cap, this one is literally struct extcon_cable β€” β€œAn internal data for an external connector.” It’s giving internal backstage-pass energy for an external connector, and we respect it πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

here’s the whole struct, copy-pasted into our group chat with love and zero typos tolerated:

struct extcon_cable {
    struct extcon_dev *edev;
    int cable_index;
    struct attribute_group attr_g;
    struct device_attribute attr_name;
    struct device_attribute attr_state;
    struct attribute *attrs[3];
    union extcon_property_value usb_propval[EXTCON_PROP_USB_CNT];
    union extcon_property_value chg_propval[EXTCON_PROP_CHG_CNT];
    union extcon_property_value jack_propval[EXTCON_PROP_JACK_CNT];
    union extcon_property_value disp_propval[EXTCON_PROP_DISP_CNT];
    unsigned long usb_bits[BITS_TO_LONGS( EXTCON_PROP_USB_CNT)];
    unsigned long chg_bits[BITS_TO_LONGS( EXTCON_PROP_CHG_CNT)];
    unsigned long jack_bits[BITS_TO_LONGS( EXTCON_PROP_JACK_CNT)];
    unsigned long disp_bits[BITS_TO_LONGS( EXTCON_PROP_DISP_CNT)];
 };

🫢 Members 🫢

  • edev β€” the extcon device. that’s the whole vibe anchor, fr fr 🌸
  • cable_index β€” the index of this cable in the edev. like its little seat number in the extcon device πŸ’Ί
  • attr_g β€” the attribute group for the cable. iconic sysfs grouping behavior ✨
  • attr_name β€” the "name" sysfs entry. yes bestie, that exact name πŸ‘‘
  • attr_state β€” the "state" sysfs entry. and that exact state πŸŽ€
  • attrs β€” the array pointing to attr_name and attr_state for attr_g. it’s the friend group linking them together 🫢
  • usb_propval β€” the array of USB connector properties. USB but make it property-array πŸ’…
  • chg_propval β€” the array of charger connector properties. charger lore πŸ”‹
  • jack_propval β€” the array of jack connector properties. jack behavior, noted 🎧
  • disp_propval β€” the array of display connector properties. display properties serving looks 🌈
  • usb_bits β€” the bit array of the USB connector property capabilities. capability bits, but USB-coded ⭐
  • chg_bits β€” the bit array of the charger connector property capabilities. charger capability bits, slay πŸ”₯
  • jack_bits β€” the bit array of the jack connector property capabilities. jack capability bits, periodt πŸ¦‹
  • disp_bits β€” the bit array of the display connector property capabilities. display capability bits, no cap πŸ’œ

🌈 SEE ALSO 🌈

go check out the kernel file ./drivers/extcon/extcon.c and these absolute besties:


byeee bestie, this lil page came from ./drivers/extcon, dated October 2026, and it’s literally the struct extcon_cable(9) manual page β€” mwah, stay iconic πŸ’‹πŸ’–

πŸ“¦ where this page comes from