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

css - I want to align grid in center -

python - SWIG function not printing output -

oop - Function for all prototypes - Javascript -