usb host message when new client is attached

Status
Not open for further replies.

lokki

Well-known member
hi there, is there a way to have some code run only when a new usb client is attached to the host port (hub)? i would like to read out the serialnumber of a newly attached device (found the function for that already)
 
I don't remember any hooks for this...

But it might not be hard to add one... Probably in USBHost::claim_drivers.

Alternatively, you might be able to simply write a real simple driver, try to get it first in line and have its claim method do the work for you.
 
Status
Not open for further replies.
Back
Top