freebsd-dev/sbin/devd
Andrew Thompson 176b25ad5c 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.
2010-04-29 22:40:12 +00:00
..
devd.8 Add -f option to program's usage(), fix manpage's SYNOPSIS. 2006-09-17 22:49:26 +00:00
devd.cc Send all debug to stderr. 2008-12-14 11:48:51 +00:00
devd.conf.5 MFC r207020, r207027, r207072. 2010-04-29 22:40:12 +00:00
devd.h Add the ability to match the on a media type of the device in question. 2005-07-10 03:37:15 +00:00
devd.hh Minor initialization change to not trigger bogus gcc warning about 2007-12-21 01:00:04 +00:00
Makefile Reduce the WARNS level across the board due to a warning that occurs 2007-11-19 00:19:01 +00:00
parse.y Add the ability to match the on a media type of the device in question. 2005-07-10 03:37:15 +00:00
token.l No need to be gratuitously style(9) non-compliant here, even though 2008-03-21 20:38:28 +00:00