Messages in this thread | | | Date | Wed, 19 Apr 2006 10:53:19 -0500 | From | Robin Holt <> | Subject | Re: searching exported symbols from modules |
| |
On Wed, Apr 19, 2006 at 04:08:37PM +0300, Antti Halonen wrote: > > Hi Dick, > > Thanks for your response. > > > `insmod` (or modprobe) does all this automatically. Anything that's > > 'extern' will get resolved. You don't do anything special. You can > > also use `depmod` to verify that you won't have any problems loading. > > `man depmod`. > > Yes, I know insmod and herein the problem lies. I have a module where > I want to use functions provided by another module, _if_ it is present, > otherwise use modules internal functions. > > So if I hardcode the function calls statically in my module, the insmod > goes trough of course, if the service module is present. But, it fails > if it's not. > > So, I want to load up, check if the service module is present, and use > it's servides.
xpc does something similar to this. We have a module (xp.ko) which gets loaded. The client modules (xpnet.ko and xpmem.ko) register with xp.ko. If xpc.ko is not loaded, the modules can not do any communication with the other partitions of an SGI machine. If xpc gets loaded, connections are made to the other partitions and the modules begin to work across the boundaries.
Hope that helps, Robin Holt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |