From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 25 23:48:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6FF416A4CE for ; Thu, 25 Mar 2004 23:48:30 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10FBF43D39 for ; Thu, 25 Mar 2004 23:48:30 -0800 (PST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i2Q7lEUS063603 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 26 Mar 2004 08:47:19 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i2Q7kahn085773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Mar 2004 08:46:37 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i2Q7kapu000321; Fri, 26 Mar 2004 08:46:36 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i2Q7kZY6000320; Fri, 26 Mar 2004 08:46:36 +0100 (CET) (envelope-from ticso) Date: Fri, 26 Mar 2004 08:46:35 +0100 From: Bernd Walter To: Sam Lawrance Message-ID: <20040326074634.GG94505@cicely12.cicely.de> References: <1080257258.1138.34.camel@dirk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1080257258.1138.34.camel@dirk> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on cicely12.cicely.de cc: freebsd-hackers@freebsd.org Subject: Re: usbd config file parse behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 07:48:31 -0000 On Fri, Mar 26, 2004 at 10:27:39AM +1100, Sam Lawrance wrote: > Hi, > > usbd's present behaviour when reading usbd.conf is to scan from top to > bottom and use the first match. > > What if it was changed to use the last, most specific match? That is, > the last match with the most of (product, vendor) specified. > > The idea is that it makes it programmatically easy to add new entries to > the file - just place them at the end. Presently that won't work because > of the generic catch-all > device "USB Device" > in the default usbd.conf. > > I know this would be useful to me, so I'm just looking for somebody to > say "yeah maybe". I'm working on getting devd(8) usable for usb devices. Seee http://www.bwct.de/usb-devd.patch for the current status. devd.conf(5) is far more flexible then usbd.conf. But devd is a 5.x thing. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de