I connected three USB hub in to a system and connected different devices in each hub. How I can find which device is connected to each hub? . I want to find which deice is connected to each hub using my C++ program. From which location I will get this details.
I want similar to lsuusb -t command output.
I tried libusb library etc., But didn't get a better idea to do this