Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

usbd_device_lookup()

Map the device instance identifier to an opaque device handle (from usbd_attach())

Synopsis:

#include <sys/usbdi.h>

struct usbd_device *usbd_device_lookup( 
                     struct usbd_connection *connection, 
                     usbd_device_instance_t *instance );

Arguments:

connection
A handle obtained by calling usbd_connect().
instance
The device instance identifier obtained by calling usbd_attach().

Library:

libusbdi

Description:

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.

Returns:

An opaque device handle, or NULL.

Classification:

QNX Neutrino, QNX 4

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

usbd_args_lookup(), usbd_attach(), usbd_configuration_descriptor(), usbd_device_extra(), usbd_device_descriptor(), usbd_endpoint_descriptor(), usbd_hcd_info(), usbd_hub_descriptor(), usbd_interface_descriptor(), usbd_languages_descriptor(), usbd_parse_descriptors(), usbd_string(), usbd_urb_status()