> I found a apparently somewhat outdated document on SUN's developer > site about reading USB device information: > > http://developers.sun.com/solaris/developer/support/driver/docs/usbups_whitepape r.html > > It talks about using a "devstat" entry in /dev to read USB Device > Descriptor information, however I don't see any "devstat" nodes in > /dev anywhere. Am I missing something? Is there another way to get USB > device information? > > Any help appreciated, > -- > Shawn Walker, Software and Systems Analyst
Hi Shawn, The whitepaper you quote essentially contains instructions about how to use the "ugen" driver. This is not a "USB scanbus" facility, but instead an all-purpose generic USB I/O transfer driver that can be MADE to attach to a large variety of USB devices. I say "MADE" because the admin is supposed to tell it which specific device to bind to, via the shown "add_drv -i ....." command (give it the bus/vendor/devid to which it shall attach). Only after you've done that will the driver present you with device nodes /dev/usb/[...]/devstat which can be used to query about this specific instance of the device. A generic "list the device tree" mechanism is possible in Solaris; the prtconf command does this, via interfaces provided by libdevinfo. But that has nothing to do with ugen. ugen allows to write userspace USB drivers. This is what the example whitepaper is talking about. It's a bit like uscsi, in the sense that is allows you to talk raw SCSI/USB protocol to a specific device. But it doesn't do a "bus inquiry". prtconf (resp. libdevinfo under the hood) does that. Btw, ugen, prtconf, libdevinfo, uscsi all have manpages. What exactly are you attempting to do ? Best Regards, Frank Hofmann _______________________________________________ opensolaris-code mailing list [email protected] https://opensolaris.org:444/mailman/listinfo/opensolaris-code
