GPIO access across containers
# help
r
Can different processes/containers access the same GPIO pin? And what about I2C, and PWM generators. Or can more processes register for the same pin transition? I can try it out, but will first wait for your advice
f
Resources are locked to specific containers. It's thus not possible to use the same gpio pin in different containers at the same time. Same is true for I2C, PWM, ...
One approach to work around this issue is to implement an "owner" container that has control over the peripheral. The other containers would then communicate with that owner through RPC. (Basically a driver).
r
Is this handled on a "first come, first serve" basis?
f
Yes.