From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 25 15:26:41 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 7D41416A4CE for ; Thu, 25 Mar 2004 15:26:41 -0800 (PST) Received: from bloodwood.hunterlink.net.au (mail.hunterlink.net.au [203.12.144.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1BA343D31 for ; Thu, 25 Mar 2004 15:26:40 -0800 (PST) (envelope-from samuel.lawrance@studentmail.newcastle.edu.au) Received: from [202.7.67.25] (as1-p25.mait.hunterlink.net.au [202.7.67.25]) i2PNQMdW002994 for ; Fri, 26 Mar 2004 10:26:38 +1100 From: Sam Lawrance To: freebsd-hackers@freebsd.org Content-Type: text/plain Message-Id: <1080257258.1138.34.camel@dirk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 26 Mar 2004 10:27:39 +1100 Content-Transfer-Encoding: 7bit Subject: usbd config file parse behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 23:26:41 -0000 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". Cheers Sam.