Map the device instance identifier to an opaque device handle (from usbd_attach())
#include <sys/usbdi.h> struct usbd_device *usbd_device_lookup( struct usbd_connection *connection, usbd_device_instance_t *instance );
libusbdi
You use the usbd_device_lookup() function to map the device instance identifier to an opaque device handle. This is typically required in the removal callback.
An opaque device handle, or NULL.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |