From owner-freebsd-arch Sun Jun 16 15:47:22 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id D5C8037B405 for ; Sun, 16 Jun 2002 15:47:19 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g5GMk8Y29481 for ; Sun, 16 Jun 2002 16:46:08 -0600 (MDT) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g5GMk7G64631 for ; Sun, 16 Jun 2002 16:46:07 -0600 (MDT) (envelope-from imp@village.org) Date: Sun, 16 Jun 2002 16:44:37 -0600 (MDT) Message-Id: <20020616.164437.20405847.imp@village.org> To: arch@freebsd.org Subject: foo_if.m -> standard in files? From: "M. Warner Losh" X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'd love to make foo_if.m files in the tree standard, to the extent that it is possible. I've been running with this in my tree for months and months. So far only the sound files pose any kind of problem at all, and even that might have been fixed in the last 9 months that I've been doing this. I've just included the interface glue, but nothing else, so the cost is relatively small. This makes loadable drivers much easier. For example, if you wanted to kldload if_ep.ko, but didn't have any pccard in your tree it would fail due to the 'card' interface not being available. Making if_ep.ko (and all drivers that have pccard attachments) dependent on pccard isn't quite the right thing to do, since you don't want to load that driver also load pccard code that isn't used at all in the system just to satisfy the interface requirements. The cost: About 1.5k bytes. This seems quite insignificant to the convenience that it buys. Comments? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message