Perhaps some sort of driver flag... Call it "assume_exported" that would neither export nor unexport, but instead report an error if the requisite files didn't exist (implying the pins weren't exported).
I don't know if driver specific flags are an option or not, but that might be the best way forward. Sent from my iPhone > On Jun 7, 2015, at 2:16 AM, Peter Korsgaard <[email protected]> wrote: > > On Fri, Jun 5, 2015 at 4:08 PM, Nick Sayer <[email protected]> wrote: > >>> I believe this affects Raspbian only. > >> It will affect any platform where udev rules have been set to change the >> permissions of the gpio nodes. This includes platforms where users have >> manually created such rules because they understand the value of “least >> privilege.” > > Alternatively, the linuxgpio logic could be changed to only try to > export if the gpio isn't exported already (and leave exported at close > time), and those platforms could just export the needed gpios up > front. > > -- > Bye, Peter Korsgaard _______________________________________________ avrdude-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avrdude-dev
