STRUCT IIO_EVENT_SPEC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct iio_event_spec β€” the spec sheet for a channel event, bestie ✨ (this one lives in the Kernel API Manual, section 9, if you're keeping track πŸŽ€)


🌸 SYNOPSIS 🌸

struct iio_event_spec {
    enum iio_event_type type;
    enum iio_event_direction dir;
    unsigned long mask_separate;
    unsigned long mask_shared_by_type;
    unsigned long mask_shared_by_dir;
    unsigned long mask_shared_by_all;
 };

πŸ¦‹ Members πŸ¦‹

Ok so the struct is literally just six lil fields and every one of them matters, so let's go πŸ‘‘

  • type β€” the type of the event. That's it, that's the whole job πŸ’…
  • dir β€” the direction of the event. Where it's heading, bestie 🧭
  • mask_separate β€” a bit mask of enum iio_event_info values. Any attributes you set in this mask get registered per channel πŸŽ€ (so like, no sharing, everybody gets their own, main character energy fr)
  • mask_shared_by_type β€” a bit mask of enum iio_event_info values. Attributes you set in this mask get shared by channel type 🌈
  • mask_shared_by_dir β€” a bit mask of enum iio_event_info values. Attributes you set in this mask get shared by channel type and direction πŸ”₯
  • mask_shared_by_all β€” a bit mask of enum iio_event_info values. Attributes you set in this mask get shared by all channels. Everybody, holding hands, one big group chat 🫢
ngl the four masks all say "bit mask of enum iio_event_info values" β€” that part is NOT a typo, it's just how it is. What changes is who ends up sharing the attributes: nobody (mask_separate), channel type, channel type + direction, or literally all channels. Know the difference, it's giving range πŸ’€

⭐ SEE ALSO ⭐

Kernel file ./include/linux/iio/iio.h β€” plus the whole extended universe of related pages, and yes we're listing every single one because we don't gatekeep here πŸ“


✨ that's the whole page, you ate it, go forth and register some events ✨

source location: ./include/linux/iio Β· dated: October 2026 Β· page: struct iio_event_spec(9) β€” mwah, ily, see u in the next manpage bestie πŸ’œπŸ‘‘

πŸ“¦ where this page comes from