From: Laurent P. <lau...@sk...> - 2005-10-11 16:58:47
|
> Ive been asked to control the USB controller to disable and enable the bus > and grab stats etc. I honestly didnt think it would be that difficult....am > I wrong...I guess its relative? Suspending a bus shouldn't be too difficult. You might not even need a kernel driver to do so, I *think* you can control the hubs from user space and suspend/resume ports. It might interfere with the kernel though, which might think a port is still enabled after you disabled it from user space. To be investigated. Stats are another problem. You will have to add hooks to the core USB kernel driver to count packets, compute bandwidth usage, ... Shouldn't be too difficult, but might require some time. Keep in mind that the USB core driver is GPLed, so your code will be too. Laurent Pinchart |