LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Can a kernel module call the function of another kernel module (http://www.linuxquestions.org/questions/programming-9/can-a-kernel-module-call-the-function-of-another-kernel-module-274929/)

sceadu 01-07-2005 03:48 AM

Can a kernel module call the function of another kernel module
 
I could not find any reference about a kernel module calling the function of another kernel module.

Can this be done?

rjlee 01-07-2005 04:12 AM

Yes. Of course, the other kernel module must be loaded.

For an example, look at the USB code, which is implemented as a mullti-layer driver, with each layer in its own module.

sceadu 01-07-2005 04:44 AM

Thanks rjlee
 
Pardon me as I'm quite a beginner at kernel programming.

I am reading the usb kernel module you have mentioned and it's quite complicated.

Can you give an example, maybe using the popular helloworld program.

vdx 05-02-2011 02:22 AM

Look into this
==================
http://tldp.org/LDP/lkmpg/2.4/html/x437.html


All times are GMT -5. The time now is 04:34 AM.