STRUCT ADC_JACK_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct adc_jack_data(9) β€” the Kernel API Manual, bestie edition

okay so this is from the kernel API manual, and today we're doing a deep dive on struct adc_jack_data β€” literally the internal data for the adc_jack device driver. it's giving "backstage pass to the extcon-adc-jack situation" and honestly? obsessed. πŸŽ€


✨ SYNOPSIS ✨

struct adc_jack_data {
    struct device *dev;
    struct extcon_dev *edev;
    const unsigned int **cable_names;
    struct adc_jack_cond *adc_conditions;
    int num_conditions;
    int irq;
    unsigned long handling_delay;
    struct delayed_work handler;
    struct iio_channel *chan;
    bool wakeup_source;
 };

yes bestie, that trailing space before the closing brace is canon, we don't touch it πŸ’– β€” copy it exactly, no cap.


🌸 Members 🌸

  • dev β€” the struct device that's associated with the adc_jack. it's the main character of the device world, lowkey.
  • edev β€” the extcon device. yep. that's the whole description, she's mysterious like that πŸ¦‹.
  • cable_names β€” the list of supported cables. not one cable, not two β€” the whole list, periodt.
  • adc_conditions β€” the list of adc value conditions. iykyk πŸ”₯
  • num_conditions β€” the size of adc_conditions. she's just here to tell you how many of them there are, and honestly she ate πŸ’…
  • irq β€” the irq number of the attach/detach event. and listen β€” it's 0 if it doesn't exist. so if you see a zero, she's not there, don't come for her πŸ™ˆ
  • handling_delay β€” the interrupt handler will schedule extcon event handling at handling_delay jiffies. so it's a delayed situation, it waits, it's got main character energy but she's patient ⭐
  • handler β€” the extcon event handler, called by the interrupt handler. it's giving "called by the interrupt handler" and that's literally the entire vibe 🧚
  • chan β€” the iio channel being queried. that's it. that's the whole thing. she's a queried channel and we respect her πŸ’œ
  • wakeup_source β€” indicates if the device can wake up the system. like a bool that decides if the system gets to sleep in or not 😭
lowkey reminder: every one of these members is exactly as written above β€” don't go renaming wakeup_source to something cuter, that's NOT the move, the compiler will not be slaying with you πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/extcon/extcon-adc-jack.c β€” go read it, bestie, it's right there 🌈

and that's the page!! fr fr, go be iconic with your adc_jack driver 🫢✨

source/version: ./drivers/extcon β€’ date: October 2026 β€” mwah, signed off with love, struct adc_jack_data(9) πŸ“πŸ’–

πŸ“¦ where this page comes from