From owner-freebsd-current Wed Jan 20 12:47:51 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA16351 for freebsd-current-outgoing; Wed, 20 Jan 1999 12:47:51 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA16345 for ; Wed, 20 Jan 1999 12:47:50 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id MAA06444; Wed, 20 Jan 1999 12:46:57 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma006440; Wed, 20 Jan 99 12:46:37 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id MAA23549; Wed, 20 Jan 1999 12:46:37 -0800 (PST) From: Archie Cobbs Message-Id: <199901202046.MAA23549@bubba.whistle.com> Subject: Re: KLD naming In-Reply-To: <199901202023.MAA01056@dingo.cdrom.com> from Mike Smith at "Jan 20, 99 12:23:38 pm" To: mike@smith.net.au (Mike Smith) Date: Wed, 20 Jan 1999 12:46:36 -0800 (PST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith writes: > > > 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? I don't care how you classify it.. of course the "isa" category is wrong. I was just pointing out that having things in subdirectories is better than having a zillion files piled into a single directory. > are bad (witness the need to reorganise the kernel source tree). Maybe I'm just an optimist.. but if we have already solved (through various incarnations) how to classify the kernel source, then we can pretty much inherit this same classification scheme for the modules. After all, they are all *kernel* modules, right? > A single directory holding module files. Blech :-) -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message