Re: libgpiod multichip bulk event wait

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

 



On Fri, Jan 20, 2023 at 3:06 PM Naidoo, Vernon
<Vernon.Naidoo@xxxxxxxxxxxxx> wrote:
>
> Good day,
>
> I'm porting some code that currently uses the gpiod_line_event_wait_bulk command, however, the new platform has the gpio spread out across multiple gpiochips. Is there a way to achieve the same functionality when waiting for events on multiple gpiochips?
>
> Best Regards,
> Vernon Naidoo

You can get the associated file descriptor for each line with
gpiod_line_event_get_fd() and poll all of them together using poll,
select, epoll, etc.

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