Hello,

On Wed, 2006-12-13 at 11:13 +0100, Marcel Holtmann wrote:
> the usbmon devices need a subsystem entry. The best way to me seems to
> attach them to the USB bus where all host controllers are already
> listed.

Here I'm walking on thin ice, because the sysfs thing looks a bit
obscure to me. 

In order to keep the usbmon implementation simple I think to create a
new class ("usbmon") in mon_bin_init. 

A new class device of such class is created for each usb bus in
mon_bus_init. The class device for minor 0, used to sniff from all usb
bus is created in mon_bin_init. The class devices are created with the
'struct device' parameter set to NULL, in order to  simplify the class
device initialization. 

A little modification to the mon_bus struct is required, because I think
to store there the class device pointer.

Any suggestions ???

ciao,

Paolo 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to