From owner-freebsd-current Wed Jan 20 12:27:46 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA13725 for freebsd-current-outgoing; Wed, 20 Jan 1999 12:27:46 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles232.castles.com [208.214.165.232]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA13712 for ; Wed, 20 Jan 1999 12:27:40 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id MAA01056; Wed, 20 Jan 1999 12:23:39 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199901202023.MAA01056@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Archie Cobbs cc: dfr@nlsystems.com (Doug Rabson), gelderen@mediaport.org, current@FreeBSD.ORG Subject: Re: KLD naming In-reply-to: Your message of "Tue, 19 Jan 1999 22:12:43 PST." <199901200612.WAA20699@bubba.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 Jan 1999 12:23:38 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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