Linux USB: libusb vs sysfs -


on linux system, need list usb hosts , devices various information class, product id, etc. figure both libusb , sysfs task (correct?). 1 better?

you should prefer libusb because platform independent , provides better apis work usb devices sysfs.

if not need integrate functionality in other program, consider using standalone usb-devices or lsusb programs (which included usbutils package).


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -