Ticket #3 (new defect)

Opened 8 years ago

Last modified 5 years ago

libusb:error [__open_sysfs_attr], errno=2

Reported by: dsd Owned by:
Milestone: Component: libusb-1.0 Linux backend
Keywords: Cc:
Blocked By: Blocks:


from https://sourceforge.net/tracker/?func=detail&aid=2104197&group_id=1674&atid=101674


On linux-2.6.26 a call to libusb_get_device_list gives the following error
on the console:

libusb:error [open_sysfs_attr] open /sys/bus/usb/devices/4-1/descriptors
failed ret=-1

and the functions returns -1. The file "descriptors" does not exist in all
usb directories.
I searched through the directory /sys/bus/usb/devices and found out that a
few folder
contains the "descriptors" file and other not.
It seems that the new kernel release doesn't create this file for all
devices. I think we
have to fall back to usbfs in order to get the descriptor.

On linux- this error doesn't occur.

This is a kernel bug but libusb should be more resilient.

Change History

comment:1 Changed 5 years ago by stuge

  • Component changed from libusb-1.0 to libusb-1.0 Linux backend
Note: See TracTickets for help on using tickets.