Date: Mon, 02 Aug 2004 14:51:07 -0700 From: Nate Lawson <nate@root.org> To: Mark Murray <mark@grondar.org> Cc: David O'Brien <obrien@FreeBSD.org> Subject: Re: cvs commit: src/sys/modules Makefile Message-ID: <410EB74B.7020206@root.org> In-Reply-To: <200408021954.i72JsYD5028875@grimreaper.grondar.org> References: <200408021954.i72JsYD5028875@grimreaper.grondar.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?410EB74B.7020206>