zpa2326_trigger_handler(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the zpa2326_trigger_handler(9) page from the Kernel API Manual πŸ’– this one is all about the bottom-half handler for the ZPA2326 IIO trigger, and it is lowkey iconic. Let’s get into it. ✨

🌸 NAME 🌸

zpa2326_trigger_handler β€” Perform an IIO buffered sampling round in one shot mode. πŸŽ€

✨ SYNOPSIS ✨

irqreturn_t zpa2326_trigger_handler (int irq , void *data );

it’s giving function signature realness, no cap. πŸ’…

πŸ¦‹ ARGUMENTS πŸ¦‹

  • irq β€” The software interrupt assigned to data. 🫢
  • data β€” The IIO poll function dispatched by external trigger our device is attached to.

🧚 DESCRIPTION 🧚

okay so picture this: this is the bottom-half handler called by the IIO trigger to which our device is currently attached. It lets us synchronize this device’s buffered sampling either with external events (such as timer expiration, external device sample ready, etc...) or with its own interrupt (that’s the internal hardware trigger, iykyk). πŸ’«

When we’re using an external trigger, it basically runs the same sequence of operations as for zpa2326_sample_oneshot, with the following hereafter πŸ‘‡ The hardware FIFO is not cleared, since that’s already done at buffering enable time, and samples dequeueing always retrieves the most recent value. Periodt. πŸ“

Otherwise β€” when the internal hardware trigger has dispatched us β€” it just fetches data from the hardware FIFO. Simple as that, bestie. 🌈

Fetched data will get pushed unprocessed to the IIO buffer, since samples conversion is delegated to userspace in buffered mode (endianness, etc...). So don’t come for us about byte order, that’s userspace’s main character era. 😭

πŸ”₯ RETURN πŸ”₯

  • IRQ_NONE β€” no consistent interrupt happened ;
  • IRQ_HANDLED β€” there was new samples available.

like, either nothing consistent happened, or we got new samples. vibe check complete. πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

go read these, bestie, they’re the whole lore 🫢:


mwah πŸ’‹ this page came from ./drivers/iio/pressure, dated October 2026, and it’s the zpa2326_trigger_handler(9) manual page β€” periodt. πŸŽ€

πŸ“¦ where this page comes from