The only thing I can find that might be useful is the following link: https://lkml.org/lkml/2008/1/8/213
It mentions that as well as switching ioctl in file ops to unlocked_ioctl you need to have an explicit lock_kernel() and unlock_kernel() between the access to the gpio card. Its out of my rudimentary C comfort zone unfortunately. Wayne Merricks The Voice Asia On 30/11/12 19:46, Wayne Merricks wrote: > Yep tried with root/sudo. I also have a startup script giving a+rw > permissions to /dev/gpio0 which means my normal riv users can use it > without issues. > > Its all fun and games, > > Wayne Merricks > The Voice Asia > > On 30/11/12 19:41, Cowboy wrote: >> On Friday 30 November 2012 02:37:15 pm Wayne Merricks wrote: >>> "Unable to open GPIO device." >>> >>> Any pointers would be really appreciated before the PCs end up through >>> the nearest windows ;) >>> >> Is root running that test ? >> Could be a simple permissioning problem. >> >> If not, then just getting it to compile isn't enough. >> > > ####################### > Scanned by MailMarshal > ####################### > > ############ > > Attention: > > The information contained in this message is confidential and intended > for the addressee(s) only. If you have received this message in error > or there are any problems, please notify the originator immediately. > The unauthorised use, disclosure, copying or alteration of this message > is strictly forbidden. Christian Vision or any of its subsidiaries will > not be liable for direct, special, indirect or consequential damages > arising from alteration of the contents of this message by a third party > or as a result of any virus being passed on. Please note that we reserve > the right to monitor and read any e-mails sent or received by the > company under the Telecommunications (Lawful Business Practice) > (Interception of Communications) Regulation 2000. Christian Vision is > registered in England as a limited company 2842414 and as a charity > 1031031 > > ############ > _______________________________________________ > Rivendell-dev mailing list > [email protected] > http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev ####################### Scanned by MailMarshal ####################### ############ Attention: The information contained in this message is confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. Christian Vision or any of its subsidiaries will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. Please note that we reserve the right to monitor and read any e-mails sent or received by the company under the Telecommunications (Lawful Business Practice) (Interception of Communications) Regulation 2000. Christian Vision is registered in England as a limited company 2842414 and as a charity 1031031 ############ _______________________________________________ Rivendell-dev mailing list [email protected] http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
