Having trouble calling my kernel module in device drivers
Completely new to open source development, so please excuse the ignorance.
I wrote a kernel-space API module that is used by device drivers, but I'm having some trouble getting the drivers to successfully call functions in my API.
In the driver there's a #include <linux/mycode.h>. I then built and loaded my module and placed the mycode.h file in the <kernel>/include/linux directory. But when I try to build the driver module, I get warnings saying that the functions in my API are undefined. So the driver knows about them but can't see the implementation of them (the code in mycode.c) I guess. Why is that?
My impression was that when a module is loaded, everything from the mycode.c file is loaded into the kernel and that a driver could call that code as long as I #include the mycode.h file in that driver. But clearly I'm missing something.
Any thoughts?
Last edited by SuperSpry; 09-06-2012 at 03:47 PM.
|