STRUCT CI_HDRC_CABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct ci_hdrc_cable β€” the struct that keeps track of what's up with your external connector cable, bestie. it's literally the vibe check for your cable state ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct ci_hdrc_cable {
    bool connected;
    bool changed;
    bool enabled;
    struct extcon_dev               *edev;
    struct ci_hdrc                  *ci;
    struct notifier_block           nb;
 };

okay so that's the whole thing β€” six members, no cap. let's get into what each one is doing πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • connected β€” true when the cable is connected, false when it's not. that's it, that's the whole personality 🌸
  • changed β€” gets set to true when an extcon event happens. it's giving "hey something moved" energy πŸ’…
  • enabled β€” true if we've enabled the vbus or id interrupt. so like, the int is awake and doing its thing πŸ”₯
  • edev β€” the device that generates the events. main character of the event-having world, fr fr πŸ‘‘
  • ci β€” driver state of the chipidea device. the big picture context, iykyk πŸ’œ
  • nb β€” holds the event notification callback. it's the little holder for the callback, lowkey important πŸŽ€

🌈 SEE ALSO 🌈

Kernel file ./include/linux/usb/chipidea.h β€” go read it, bestie, it's iconic ⭐


and that's the whole page!! 🫢 this one lives over in ./include/linux/usb, dated October 2026, and it's literally called struct ci_hdrc_cable(9) β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from