At 02:20 PM 5/2/02, you wrote:
>Anyone here intimately familiar with modules?
>
>I'm trying to start my application automatically when a Compact Flash
>is inserted into a Sandisk CF reader. Is there a facility in the kernel
>or in insmod to automatically launch an application when a module is
>inserted? I.e., I would like to start my app whenever the USB mass
>storage module loads so that I can automatically mount the CF disk and
>copy images from it.
>
>I've hacked up a program to sit and wait, looking every few seconds at
>the currently loaded modules but it pegs the CPU and interferes with
>power management.


Forgive me if I ask the obvious...  Are you using sleep() to wait?  sleep() 
doesn't use CPU for the delay...


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to