libusb/libusb — pull request #2 by justinbischoff (2014-03-26 20:31:38+00:00)
Title:  Updated netlink code for linux kernel 2.6.18

Updated netlink code to parse events that do not contain BUSNUM and DEVNUM but do have a DEVICE parameter.

These netlink events are now parsed:
>>>>>>>>>>>>>>>>>
add@/devices/platform/brcm-ohci-0.0/usb3/3-2/3-2:1.0
ACTION=add
DEVPATH=/devices/platform/brcm-ohci-0.0/usb3/3-2/3-2:1.0
SUBSYSTEM=usb
SEQNUM=290
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/003/003
PRODUCT=45e/28e/114
TYPE=255/255/255
INTERFACE=255/93/1
<<<<<<<<<<<<<<<<<

Also added a retry when opening the device file to work around a race condition with the kernel