STRUCT ADC_JACK_DATA(9)
π 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β thestruct devicethat'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 ofadc_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's0if 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 athandling_delayjiffies. 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 aboolthat 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
- 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