From owner-freebsd-current@FreeBSD.ORG Fri Jun 11 15:44:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B122916A4CE for ; Fri, 11 Jun 2004 15:44:54 +0000 (GMT) Received: from bes.amduat.net (bes.amduat.net [206.124.149.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3898243D54 for ; Fri, 11 Jun 2004 15:44:54 +0000 (GMT) (envelope-from jbarrett@amduat.net) Received: from osiris.attachmate.com ([63.115.16.66]) (AUTH: LOGIN jbarrett, SSL: TLSv1/SSLv3,128bits,RC4-MD5) by bes.amduat.net with esmtp; Fri, 11 Jun 2004 08:44:53 -0700 From: "Jacob S. Barrett" To: freebsd-current@freebsd.org Date: Fri, 11 Jun 2004 08:44:52 -0700 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200406110844.52444.jbarrett@amduat.net> Subject: devd and usb X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2004 15:44:54 -0000 Should the vendor and product codes be accessable in devd. I have seen examples while searching Google that suggest that they should be, but they don't appear to be. The problem is that I have two devices that get recognized as ucom devices, my Visor and my cell phone. Obviously the actions I want to purform when they are detected are very different. I tried matching based on vendor and product codes, but that doesn't work. The codes are not available when devd processes the attach event. Below is a snippet of my devd/visor.conf and the debug output from devd. You can see that devd doesn't have a vendor code for this event. Am I doing something wrong? devd/visor.conf: attach 10 { device-name "ucom[0-9]+"; match "vendor" "0x082d"; match "product" "0x0100"; action "chmod 0666 /dev/$device-name"; action "ln -sf /dev/$device-name /dev/visor"; }; devd debug: Processing event '+ucom0 at on uhub0' Pushing table device-name=ucom0 Processing attach event Testing device-name=ucom0 against ^ed50 Testing device-name=ucom0 against ^ucom[0-9]+ Testing vendor= against ^0x082d Testing device-name=ucom0 against ^(an|ar|ath|aue|awi|bfe|bge|cm|cnw|cs|cue| dc|de|ed|el|em|ep|ex|fe|fxp|gem|gx|hme|ie|kue|lge|lnc|my|nge|pcn|ray|re|rl| rue|sf|sis|sk|sn|snc|ste|ti|tl|tx|txp|vr|vx|wb|wi|xe|xl|bwe)[0-9]+ Testing device-name=ucom0 against ^(adv|advw|aic|aha|ahb|ahc|ahd|bt|ct|iir| isp|mly|mpt|ncv|nsp|stg|sym|wds)[0-9]+ Testing device-name=ucom0 against ^ukbd0 Popping table -- Jacob S. Barrett jbarrett@amduat.net www.amduat.net "I don't suffer from insanity, I enjoy every minute of it."