LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Dazuko is loading in the kernel but my application is failing to register with dazuko (https://www.linuxquestions.org/questions/linux-kernel-70/dazuko-is-loading-in-the-kernel-but-my-application-is-failing-to-register-with-dazuko-531634/)

sharad 02-23-2007 06:35 AM

Dazuko is loading in the kernel but my application is failing to register with dazuko
 
Dear all,

When I am loading the dazuko module manually and then running my application, it is able to register with dazuko without any problem.

But I want to do this automatically, i.e I want to write a code to insert the dazuko module and then register the application. For this I am invoking the system function as,

system("/sbin/insmod dazuko.ko");

so it is loading but my application is failing to register with dazuko.

To solve this problem, I invoked sleep() function for 6 seconds after inserting the module and then tried to register the application. then it is working. But I want the solution without sleeping the process for 6 seconds. Because till that time my remote application on another machine wating for the respone will shut down.

I would appreciate if anybody could help me to solve this problem.

Thanks & Regards,
Sharad.

swampdog2002 02-24-2007 02:53 PM

I don't know if this will be beneficial to you, but for AntiVir to work properly I also need the dazuko module installed. I have edited rc.modules to probe for dazuko upon startup. Depending upon your situation, you may not want dazuko loaded all of the time, but in my case AntiVir needs it, and this application is running all of the time as well. Also, I need to have the commoncap module loaded prior to loading dazuko for the module to work properly.


All times are GMT -5. The time now is 07:35 AM.