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
On Fri, Dec 30, 2011 at 7:16 PM, Philip Anil-QBW348 <anil.philip@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 after the driver has done its work, since Foo is now running the driver. Is it possible?
You can't say a driver is 'owned' by an user... drivers are just code that run in kernel space... processes (started by certain users) can run or not that code. If you want, you can verify if the driver is accessed by an user, but that's about it.
Thanks for replying. Specifically, I want a certain program to be run after the audio and video codecs are run. How do I do that? Anil -----Original Message----- From: alexandrujuncu@gmail.com [mailto:alexandrujuncu@gmail.com] On Behalf Of Alexandru Juncu Sent: Friday, December 30, 2011 11:26 AM To: Philip Anil-QBW348 Cc: kernelnewbies@kernelnewbies.org Subject: Re: On Fri, Dec 30, 2011 at 7:16 PM, Philip Anil-QBW348 <anil.philip@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 after the driver has done its work, since Foo is now running the driver. Is it possible?
You can't say a driver is 'owned' by an user... drivers are just code that run in kernel space... processes (started by certain users) can run or not that code. If you want, you can verify if the driver is accessed by an user, but that's about it.
On Dec 30, 2011 7:35 PM, "Philip Anil-QBW348" < anil.philip@motorolasolutions.com> wrote:
Thanks for replying. Specifically, I want a certain program to be run
after the audio and video codecs are run.
How do I do that? Anil
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...
-----Original Message----- From: alexandrujuncu@gmail.com [mailto:alexandrujuncu@gmail.com] On
Behalf Of Alexandru Juncu
Sent: Friday, December 30, 2011 11:26 AM To: Philip Anil-QBW348 Cc: kernelnewbies@kernelnewbies.org Subject: Re:
On Fri, Dec 30, 2011 at 7:16 PM, Philip Anil-QBW348 <anil.philip@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 after the driver has done its work, since Foo is now running the driver. Is it possible?
You can't say a driver is 'owned' by an user... drivers are just code that run in kernel space... processes (started by certain users) can run or not that code. If you want, you can verify if the driver is accessed by an user, but that's about it.
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 finish? Anil
On Dec 30, 2011 8:05 PM, "Philip Anil-QBW348" < anil.philip@motorolasolutions.com> wrote:
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 finish?
Anil
Again, libraries are not owned by an user... They're just files, that any user can read. And the code in those files are used by processes that are owned by an user. A new process will be run by the same user as the one that forked that process (usually).
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
On Fri, Dec 30, 2011 at 8:46 PM, Philip Anil-QBW348 <anil.philip@motorolasolutions.com> wrote:
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.
Well, I think it depends of the codec (I am not familiar with multimedia programming). But I am imagining that the code looks something like: my_movie = new_coded_movie("/path/to/file"); my_movie.play(); Both new_coded_movie and play are function implemented in the codec library (but this depends on the exact codec and programming framework). So no, I would say that there is not a single point where the codecs are called. -- Alexandru Juncu ROSEdu http://rosedu.org
participants (2)
-
Alexandru Juncu -
Philip Anil-QBW348