Re: [PATCH 3/7] iio: Add in-kernel API for events

From: Jonathan Cameron
Date: Sun Jul 27 2025 - 12:25:00 EST


On Mon, 14 Jul 2025 21:20:19 -0400
Sean Anderson <sean.anderson@xxxxxxxxx> wrote:

> Add an API to notify consumers about events. Events still need to be
> enabled using the iio_read_event/iio_write_event functions. Of course,
> userspace can also manipulate the enabled events. I don't think this is
> too much of an issue, since userspace can also manipulate the event
> thresholds. But enabling events may cause existing programs to be
> surprised when they get something unexpected. Maybe we should set the
> interface as busy when there are any in-kernel listeners?
I think we definitely want that to be an option.

>
> Signed-off-by: Sean Anderson <sean.anderson@xxxxxxxxx>