Initialize the pipe described by the device or endpoint descriptor
#include <sys/usbdi.h>
int usbd_open_pipe( struct usbd_device *device, 
                    usbd_descriptors_t *desc, 
                    struct usbd_pipe **pipe ); 
You use the usbd_open_pipe() function to
initialize the pipe described by the endpoint descriptor.
- device
 
- An opaque handle used to identify the USB device.
 
- desc
 
- A pointer to the device or endpoint descriptor that was returned
from usbd_parse_descriptors().
 
- pipe
 
- An opaque handle returned by usbd_open_pipe().
 
- EINVAL
 
- Descriptor isn't device or endpoint.
 
- ENOMEM
 
- No memory for internal pipe structures.
 
QNX Neutrino, QNX 4
| Safety: |  | 
| Cancellation point | 
    No | 
| Interrupt handler | 
    No | 
| Signal handler | 
    No | 
| Thread | 
    Yes | 
usbd_abort_pipe(),
usbd_close_pipe(),
usbd_pipe_endpoint(),
usbd_reset_pipe()