On Wed, Mar 10, 2021 at 3:38 PM Tomas Melin <tomas.melin@xxxxxxxxxxx> wrote: > > Hello, > > Is there a preferred way of providing shared access to a gpio pin? > > Use case is such that there is one application which only monitors the > state of gpio pins, while another > > actually controls those pins. It would be enough if the monitoring > application could read the state of those pins regularly. > > With the old sysfs approach, it was rather easy to share read/writes to > a certain pin, but is there a > > way to provide similar functionality with gpio character devices? I think it's a matter of having D-Bus interface and corresponding access rules. I dunno what the state of affairs right now is in libgpiod. -- With Best Regards, Andy Shevchenko