lkml.org 
[lkml]   [2002]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectFind module by name
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/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.059 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site