Re: [libgpiod]: non-exclusive use of input lines

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

 



On Thu, Jul 13, 2023 at 09:24:03AM +0000, Hollerer Franz, Schrack Seconet AG, Entwicklung wrote:
> 
> I have several processes (one of them is a shell scripts, others are
> C/C++ programs) which need to read the same input line.
> Is it somehow possible to request input lines for non-exclusive use?

No, it is not possible.

> If not, is this a feature which will be added sometime in the future?
> 

No, there are no plans for such a feature, AFAIAA.

The solution is to have a userspace process monitor the line and share
the value with the other processes.  How best to do that is up to you.
A simple approach would be to write the value to a file.
(which might be a useful mode to add to gpiomon??)

Bart is working on a daemon that may provided shared read access, but
I'm just guessing.

Cheers,
Kent.




[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