The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
Hello all, I feel like I am totally missing something here so I apologize if this is a stupid question...
I maintain a KMDF USB 3.1 Gen2 device driver and I would like to detect the negotiated connection speed from within the device driver, i.e. if the device is running in SuperSpeed (5Gbps) or SuperSpeedPlus (10Gbps) mode.
I tried the obvious
WdfUsbTargetDeviceQueryUsbCapability, unfortunately there is no GUID for SuperSpeedPlus capability, only HighSpeed and SuperSpeed. I am using the latest WDK 10.0.18362.0 version. (Have MSFT guys simply forgot to add it or is it intentionally not supported anymore?)
So I took a look at the UsbView source code and they use the
USB_NODE_CONNECTION_INFORMATION_EX_V2 structure which contains this information. However, for that I think I would need to know the USB hub handle my device is attached to so I can send it the
So this leads me to following questions:
The last two would be really nice to have at least for debugging purposes as I could detect whether I am connected to an Intel or AsMedia controller or whether there are other devices attached in the same hub.
|Upcoming OSR Seminars|
|OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!||Kernel Debugging||30 Mar 2020||OSR Seminar Space|
|Developing Minifilters||15 Jun 2020||LIVE ONLINE|
|Writing WDF Drivers||22 June 2020||LIVE ONLINE|
|Internals & Software Drivers||28 Sept 2020||Dulles, VA|