STRUCT ADC_JACK_PDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct adc_jack_pdata(9) β€” Kernel API Manual πŸ’–

okay bestie, so this one is from the Kernel API Manual and it's literally the blueprint for the platform data of an adc jack device. it's struct hours, and we're gonna get through it together, no cap 🫢


✨ NAME ✨

struct adc_jack_pdata β€” platform data for adc jack device. that's it, that's the whole vibe. it's the little bundle of settings you hand over when you're setting up an adc jack πŸ’…


🌸 SYNOPSIS 🌸

struct adc_jack_pdata {
    const char *name;
    const char *consumer_channel;
    const unsigned int *cable_names;
    struct adc_jack_cond *adc_conditions;
    unsigned long irq_flags;
    unsigned long handling_delay_ms;
    bool wakeup_source;
 };

like, look at her. seven fields and every single one is doing her own little job πŸ‘‘


πŸŽ€ Members πŸŽ€

  • name β€” the name of the extcon device. and if you leave it null? iconic behavior, honestly, because then "adc-jack" is used instead. built-in nickname energy πŸ’–
  • consumer_channel β€” a unique name so you can identify the channel on the consumer side. it typically describes the channels used within the consumer. for example: 'battery_voltage'. yes bestie, she's the one who tells everyone which channel is which πŸ”₯
  • cable_names β€” array of extcon id for supported cables. a whole little lineup of the cables we support, slay 🌈
  • irq_flags β€” the irq flags used for the irq. that's the whole description, short and sweet, she doesn't overexplain πŸ’…
  • handling_delay_ms β€” okay so some devices need to read the ADC value a few milliseconds after the interrupt happens. you can describe that kind of delay with handling_delay_ms, and heads up: it's rounded-off by jiffies. so don't come for her about the exact ms value, she's approximating on purpose 😭
  • wakeup_source β€” flag to wake up the system for extcon events. she can literally pull the whole system out of sleep for these events, main character energy fr fr ⭐
🫢 little note: adc_conditions is chillin' in the struct up there but this page doesn't give her a Members description. she's invited to the party, just no speech today. check the SEE ALSO if you wanna know more πŸ‘€

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/extcon/extcon-adc-jack.h
  • struct adc_jack_cond(9)

and that's the whole page, bestie, you ate that πŸ’…βœ¨ this masterpiece lives in ./include/linux/extcon, dated October 2026, and her official title is struct adc_jack_pdata(9) β€” go be obsessed with her πŸŽ€πŸ’œ

πŸ“¦ where this page comes from