Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 1999 12:23:38 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Archie Cobbs <archie@whistle.com>
Cc:        dfr@nlsystems.com (Doug Rabson), gelderen@mediaport.org, current@FreeBSD.ORG
Subject:   Re: KLD naming 
Message-ID:  <199901202023.MAA01056@dingo.cdrom.com>
In-Reply-To: Your message of "Tue, 19 Jan 1999 22:12:43 PST." <199901200612.WAA20699@bubba.whistle.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > When I first started writing KLD, I had a vague notion that there would be
> > a simple directory structure under /modules, e.g.:
> > 
> > 	/modules
> > 			pci/
> > 				ncr.ko
> > 				...
> > 			isa/
> > 				if_ed.ko
> > 				...
> > 			...
> 
> I like this idea (subdirectories) better.. it will last longer :-)

It's a really bad idea, because it requires you to classify things.  It 
also makes it much harder to administer.  In addition, classifications 
are bad (witness the need to reorganise the kernel source tree).

> You should then be able to load a module "isa/if_ed.ko" etc
> and have it work (no leading slash).

And here is a good example.  Why would you want to put if_ed in the 
"ISA" category when it can be attached to both the PCI and ISA busses?

> In fact, we can implement this (maybe it already works) before
> coming to a final decision on what the actual layout should be.

A single directory holding module files.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901202023.MAA01056>