From owner-freebsd-stable@FreeBSD.ORG Sat Jan 7 23:45:13 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A05A516A41F; Sat, 7 Jan 2006 23:45:13 +0000 (GMT) (envelope-from gpalmer@freebsd.org) Received: from noop.colo.erols.net (noop.colo.erols.net [207.96.1.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48E9443D45; Sat, 7 Jan 2006 23:45:08 +0000 (GMT) (envelope-from gpalmer@freebsd.org) Received: from uucp by noop.colo.erols.net with local-rmail (Exim 4.52 (FreeBSD)) id 1EvNkB-000CfM-FX; Sat, 07 Jan 2006 18:45:07 -0500 Received: from localhost.home.in-addr.com ([127.0.0.1]:49489) by rimmer.home.in-addr.com with esmtp (Exim 4.60 (FreeBSD)) (envelope-from ) id 1EvNjt-000BuX-7J; Sat, 07 Jan 2006 23:44:49 +0000 Message-ID: <43C05270.60106@freebsd.org> Date: Sat, 07 Jan 2006 23:44:48 +0000 From: Gary Palmer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051130 X-Accept-Language: en-gb, en, en-us MIME-Version: 1.0 To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: devd and caseful device ID matching on 6.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jan 2006 23:45:13 -0000 Hi Warner, I've been playing with devd and noticed that if you do something like: # # Dell TrueMobile 1300 WLAN PC Card # nomatch 10 { match "bus" "pci[0-9]+"; match "vendor" "0x14E4"; match "device" "0x4320"; match "subvendor" "0x1028"; match "subdevice" "0x0002"; action "kldload BCMWL5_SYS"; }; it won't match (at least on 6.0) as the regex that is used is case sensitive. Since these are hex numbers, could the comparison not be case insensitive? I'm not sure what implications just making the regex case insensitive will have on other matching clauses (e.g. for "system"). Thanks, Gary