On Wed, May 15, 2024 at 10:14:36PM +0800, Kent Gibson wrote: > On Wed, May 15, 2024 at 06:54:15AM -0700, Bartosz Golaszewski wrote: > > On Wed, 15 May 2024 11:18:48 +0200, Kent Gibson <warthog618@xxxxxxxxx> said: > > > > > > Sure thing. This is what I have at the moment (the declarations are as > > > per earlier, just renamed. And I just noticed some variables I haven't > > > renamed. I'll add it to the todo list.): > > > > > > > Can you post an example of how this is used? > > > > Sure [1]. > What was I thinking - you read the uAPI event and convert it to a libgpiod type, so that wont work. I obviously haven't tried running that example. Forget I suggested it - if the user wants to avoid the event buffer complexity they have to read into a struct gpio_v2_line_event, so no libgpiod involvement at all. Cheers, Kent.