[openib-general] Loading / unloading IB modules
Troy Benjegerdes
Fri Mar 26 09:12:54 PST 2004
On Fri, Mar 26, 2004 at 08:45:15AM -0800, Roland Dreier wrote:
> Troy> The next thing that gets checked into subversion ought to be
> Troy> a script to load and unload modules with insmod, so someone
> Troy> can get started fixing this.
>
> It should be easy to write that script if you want to work on it.
> Just modprobe the module you're interested in and look at
> /proc/modules to see the order everything got loaded in. To get the
> script take that list of modules, put "insmod" in front of each name,
> make a second copy in reverse order and put "rmmod" in front of each
> name.
I think the load order and the function of each module (if there are
more than say, 3 modules) should be documented somewhere.
The bigger issue is fixing the code so unload works.
There are at least 3 other stacks, and in the 2.4 kernel, I could load
up the Divergenet stack, run some stuff, unload it, then load up vapi,
and everything was happy.
> Troy> We're not running windows here.. if you have to reboot, the
> Troy> code is broken and needs to be fixed.
>
> Keep in mind that Linus says module unloading is a deprecated,
> developer-only feature.
Maybe so, but there are enough developers that care about this feature
that if Linus drops support for it, someone will maintain a fork, and
I'll use that fork in which module unloading works.
As gregkh said, inability to do module unloading indicates other, deeper
problems in the code.
--
To unsubscribe send an email with subject unsubscribe to openib-general at openib.org.
Please contact moderator at openib.org for questions.
More information about the openib-general mailing list