Re: [libgpiod] - fast writing while waiting for edge events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 12, 2023 at 10:55 AM Mathias Dobler <mathias.dob@xxxxxxxxx> wrote:
>
> Hello,
> From reading other conversations I've learned that it's not a good
> idea to have more than 1 thread accessing libgpiod objects. But this
> raises the question of how to react to events and let reads/writes
> through as quickly as possible at the same time. I have already played
> around with the file descriptor of the request object to interrupt the
> wait for edge events, but this solution is not good because it comes
> at the expense of responsiveness to events, and requires complicated
> synchronization.
> How bad would it be to have 1 thread waiting for events and 1 other
> thread reading/writing?
>
> Regards,
> Mathias
>

Are you bitbanging? It totally sounds like bitbanging. Have you
considered writing a kernel driver for whatever you're doing?

Bart





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux