Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Jan 2006 23:44:48 +0000
From:      Gary Palmer <gpalmer@freebsd.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-stable@freebsd.org
Subject:   devd and caseful device ID matching on 6.0
Message-ID:  <43C05270.60106@freebsd.org>

next in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C05270.60106>