STRUCT IIO_DUMMY_EVENTGEN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so struct iio_dummy_eventgen is the event generator specific state. That’s the whole assignment, bestie β€” this struct is the little state bundle for the event generator side of the IIO dummy driver. πŸ’…

✨ SYNOPSIS ✨

This is from the Kernel API Manual, section 9, and the struct shape is exactly this:

       struct iio_dummy_eventgen {
           struct iio_dummy_regs regs[IIO_EVENTGEN_NO];
           struct mutex lock;
           bool inuse[IIO_EVENTGEN_NO];
           struct irq_domain *irq_sim_domain;
        };

πŸŽ€ Members πŸŽ€

  • regs β€” the irq regs we are faking. It’s a struct iio_dummy_regs array sized IIO_EVENTGEN_NO, and it’s literally the fake IRQ register state. no cap. πŸ”₯
  • lock β€” a struct mutex whose whole job is to protect the evgen state. do not skip the locking era, bestie. πŸ”’
  • inuse β€” a bool array, inuse[IIO_EVENTGEN_NO], that’s the mask of which irqs are connected. it tracks who’s plugged in. 🫢
  • irq_sim_domain β€” a struct irq_domain * pointing at the irq simulator domain. that’s the sim-domain vibe. ✨

🌈 SEE ALSO 🌈

kisses, this page comes from source ./drivers/iio/dummy, dated October 2026, and it’s the struct iio_dummy_eventgen(9) page. πŸ’…πŸ¦‹

πŸ“¦ where this page comes from