Ticket #3 (new defect)
Opened 4 years ago
Last modified 13 months 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: |
Description
from https://sourceforge.net/tracker/?func=detail&aid=2104197&group_id=1674&atid=101674
From
http://sourceforge.net/mailarchive/message.php?msg_name=20080731112725.5531
0%40gmx.net
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
errno=2
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-2.6.23.1 this error doesn't occur.
This is a kernel bug but libusb should be more resilient.
Change History
comment:1 Changed 13 months ago by stuge
- Component changed from libusb-1.0 to libusb-1.0 Linux backend