From owner-cvs-src-old@FreeBSD.ORG Thu Apr 29 23:03:20 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 641791065670 for ; Thu, 29 Apr 2010 23:03:20 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 506138FC1E for ; Thu, 29 Apr 2010 23:03:20 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o3TN3KKl088630 for ; Thu, 29 Apr 2010 23:03:20 GMT (envelope-from thompsa@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o3TN3KDU088629 for cvs-src-old@freebsd.org; Thu, 29 Apr 2010 23:03:20 GMT (envelope-from thompsa@repoman.freebsd.org) Message-Id: <201004292303.o3TN3KDU088629@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to thompsa@repoman.freebsd.org using -f From: Andrew Thompson Date: Thu, 29 Apr 2010 22:40:12 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/etc devd.conf src/etc/devd uath.conf src/sbin/devd devd.conf.5 src/sys/dev/usb usb_device.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2010 23:03:20 -0000 thompsa 2010-04-29 22:40:12 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) etc devd.conf etc/devd uath.conf sbin/devd devd.conf.5 sys/dev/usb usb_device.c Log: SVN rev 207397 on 2010-04-29 22:40:12Z by thompsa MFC r207020, r207027, r207072. Change usb devd events from fake attach to a notify. The ugen device is not a proper device_t so it faked the devctl event to appear like one, this is now a notify which allows more information to be passed. We notify for both the device attach/detach and for each usb interface. A devd rule can now match on the interface properties, including composite devices which may have a uvideo interface and also usound and possibly uhid too. An example to match a umass device with a scsi subclass and BBB protocol would be notify 100 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "intclass" "0x08"; match "intsubclass" "0x06"; match "intprotocol" "0x50"; action ... }; The old attach devctl event has been retained for the moment to make merging to 8.1 easier. This was never compatible with 7.x or earlier due to the ugen regex change needed. Document the new USB notification types. Revision Changes Path 1.49.2.2 +8 -6 src/etc/devd.conf 1.1.2.3 +91 -65 src/etc/devd/uath.conf 1.14.2.2 +55 -1 src/sbin/devd/devd.conf.5 1.44.2.13 +98 -4 src/sys/dev/usb/usb_device.c