Find module by name

From: Thomas Heinz (thomasheinz@gmx.net)
Date: Sat Dec 07 2002 - 06:37:16 EST


Hi

I want to implement a kind of module autoloading mechanism.
The situation is the following: There are two modules A and B,
where A needs module B to be loaded under certain (runtime)
conditions.

First I thought the solution would be pretty simple. I wanted to
use a function like find_module from kernel/module.c to search
module_list for a module of a certain name. If it is not there
request_module would be used to load the module and afterwards
another find_module call should return a pointer to the module
if the call succeeded.

Unfortunately this solutions does not work in general as
module_list is not exported which means that I'm getting those
nasty 'unresolved symbol' messages when insmoding module A.

Any suggestions? Thanks for your help.

Thomas

-
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/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:29 EST