iio_trigger_set_drvdata(9)
β¨ iio_trigger_set_drvdata β like, the whole vibe β¨
okay so bestie, welcome to the Kernel API Manual page for iio_trigger_set_drvdata(9) π
this one is short but she's iconic, trust.
π NAME π
iio_trigger_set_drvdata β Set trigger driver data π
π¦ SYNOPSIS π¦
void iio_trigger_set_drvdata (struct iio_trigger *trig , void *data );
that's it. that's the whole function signature. no cap, she's a one-liner girlie β¨
πΈ ARGUMENTS πΈ
trigβ the IIO trigger structure π like, the actual trigger we're attaching stuff todataβ driver specific data π just a pointer, whatever your driver needs to stash away
π DESCRIPTION π
so basically this lets you attach an arbitrary pointer to an IIO trigger β an arbitrary pointer, bestie, literally any pointer you want π«Ά
and then later? you can get it right back out with iio_trigger_get_drvdata. it's giving storage unit energy. drop it off now, pick it up later, no questions asked π
π SEE ALSO π
- Kernel file
./include/linux/iio/trigger.hπ struct iio_trigger_ops(9)struct iio_trigger(9)iio_trigger_get_drvdata(9)iio_trigger_register(9)iio_trigger_unregister(9)iio_trigger_set_immutable(9)iio_trigger_using_own(9)
like, go read those too, they're all part of the same friend group fr fr π
π‘ tiny reminder bestie: this page lives at ./include/linux/iio and it's dated October 2026 β that's the source, version and date, signed off with love π§ββοΈβ¨ mwah, bye! π
π¦ 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