I want the drivers to be owned by a user, Foo. Whenever the drivers are
called by application Duh, I want a program Bar to run after the driver
has done its work, since Foo is now running the driver. Is it possible?
Anil
___
Kernelnewbies mailing list
AM
To: Philip Anil-QBW348
Cc: kernelnewbies@kernelnewbies.org
Subject: Re:
On Fri, Dec 30, 2011 at 7:16 PM, Philip Anil-QBW348
anil.phi...@motorolasolutions.com wrote:
I want the drivers to be owned by a user, Foo. Whenever the drivers are
called by application Duh, I want a program Bar to run
Audio /video codecs are just system libraries not kernel drivers... You could
modify the codec library code to start a new process, but it's hackish...
--
Suppose the codecs are owned by a special user, Foo. Then is it possible for
Foo to automatically run the program Bar after the codecs
Ok, but is there a single point in execution before the codecs are called? I am
wondering if I can have the program Bar called at this point.
Anil
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
I am trying to write to mydriver but get a 'Bad file number' error.
int fd = open(/dev/mydriver,O_RDWR);
this opens successfully as fd is not -1.
ssize_t bytesToWrite = strlen(buf);
value is: bytesToWrite 28
ssize_t bytesWritten = write(fd,buf,bytesToWrite);
value is: bytesWritten -1