cvs commit: src/sys/modules Makefile

Nate Lawson nate at root.org
Mon Aug 2 14:51:12 PDT 2004


Mark Murray wrote:
> Brooks Davis writes:
> 
>>IMO this is a module system bug not a bug in any given module.  There's no
>>good reason for the system to succeed at loading a module that's already
>>there regardless of how it got there.  I don't understand the module
>>system well enough to know where the bug lies, but I believe the
>>DECLARE_MODULE statement provides more then enough information to avoid
>>duplicates.
> 
> I'm looking to see if MODULE_VERSION() may fix this.

The case where mem is compiled into the kernel and then an attempt is 
made to load it as a module needs to be detected by looking for an 
instance of the devclass.  See how acpi/legacy co-exist.  This is not 
just a problem with the same module being loaded multiple times.

-Nate


More information about the cvs-src mailing list