STRUCT ADC_JACK_PDATA(9)
π 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 withhandling_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
- 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