Map /dev/bus/usb node to /sys node on Linux
Posted
by Cody Brocious
on Stack Overflow
See other posts from Stack Overflow
or by Cody Brocious
Published on 2010-05-08T19:11:30Z
Indexed on
2010/05/08
19:18 UTC
Read the original article
Hit count: 444
I'm using libusb to find and access a USB device, but once I get the information I need from there, I need to map it to a /sys node. This could be to the actual USB bus it's on, the /sys/bus/usb-serial node (which is where I'm going to get eventually), or effectively anywhere else since I can walk the tree from there. I can get to a /dev/bus/usb node easily enough, but I'm a bit lost from there. What would be the best route to perform this mapping?
© Stack Overflow or respective owner