iio_trigger_get_drvdata(9)
π iio_trigger_get_drvdata(9) β like, the Kernel API Manual page you didn't know you needed π
okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is iio_trigger_get_drvdata β the little getter that could. β¨
πΈ NAME πΈ
iio_trigger_get_drvdata β Get trigger driver data
yes that's it. that's the whole name section. she's concise, she's iconic, she ate. π
π¦ SYNOPSIS π¦
void * iio_trigger_get_drvdata (struct iio_trigger *trig );
literally the whole signature, verbatim, no edits from me because I would never touch the code. π«Ά
β¨ ARGUMENTS β¨
trigβ the IIO trigger structure. that's the one bestie. that's the pointer you're handing over. π―
π₯ DESCRIPTION π₯
Returns the data that was previously set with iio_trigger_set_drvdata. that's the vibe. set it, then get it. the circle of life. the way that getters and setters just work together is honestly so satisfying. π
no cap, that's genuinely the entire behaviour β it hands back whatever driver data you stashed on that trigger earlier. π
π SEE ALSO π
- Kernel file
./include/linux/iio/trigger.h struct iio_trigger_ops(9)struct iio_trigger(9)iio_trigger_set_drvdata(9)iio_trigger_register(9)iio_trigger_unregister(9)iio_trigger_set_immutable(9)iio_trigger_using_own(9)
go read these too, bestie, they're all in the same friend group π
fr fr: ./include/linux/iio is the source home, this page is dated October 2026, and that's the whole manual page footer. mwah. π
π¦ and that's the tea β signed off from ./include/linux/iio, October 2026, with love and a lil sparkle. don't forget your semicolons, iykyk. πππΈ
π¦ 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