cvs commit: src/sys/modules Makefile

Brooks Davis brooks at one-eyed-alien.net
Mon Aug 2 12:37:51 PDT 2004


On Mon, Aug 02, 2004 at 07:29:37PM +0000, David O'Brien wrote:
> On Mon, Aug 02, 2004 at 07:50:03PM +0100, Mark Murray wrote:
> > "David O'Brien" writes:
> > > Please find a way for all your /dev KO's to detect if they are already
> > > active and not panic if loaded(initialized) twice.  Many of the network
> > > and SCSI device KO's DTRT.  Maybe you can copy their method of handling
> > > this.
> > 
> > I am investigating. 
> 
> You've been investigating for years.  I've reported the problem about
> random.ko more than once.  So have others:
> 
>     Date: Sun, 22 Sep 2002 00:32:39 -0700
>     Message-ID: <20020922073239.GA34550 at dragon.nuxi.com>
> 
>     Date: Sun, 10 Aug 2003 00:36:00 -0700
>     Message-ID: <20030810073600.GA61665 at dragon.nuxi.com>
> 
>     Date: Fri, 15 Aug 2003 09:18:52 -0700
>     Message-ID: <20030815161852.GD61152 at dragon.nuxi.com>
> 
>     Date: Mon, 5 Apr 2004 02:35:53 +0200
>     Message-ID: <20040405003553.GG27087 at isis.wad.cz
> 
>     Date: Mon, 21 Jun 2004 00:01:04 +0800 (CST)
>     Message-ID: <040620234141A.22488 at www.mmlab.cse.yzu.edu.tw>

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.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040802/c5b1982e/attachment.bin


More information about the cvs-src mailing list