Download Belkin F8E211 User`s guide

Transcript
usbd_alloc_urb()
© 2007, QNX Software Systems GmbH & Co. KG.
Allocate a USB Request Block for subsequent URB-based operations
Synopsis:
#include <sys/usbdi.h>
struct usbd_urb *usbd_alloc_urb( struct usbd_urb *link );
Arguments:
link
Specifies multiple URBs linked together. (Not yet implemented.)
Library:
libusbdi
Description:
The usbd_alloc_urb() function allocates a USB Request Block (URB) to be used for
subsequent URB-based I/O transfers.
To free the block, use usbd_free_urb().
Returns:
A pointer to the start of the allocated block, or NULL if there isn’t enough memory.
Errors:
ENOMEM
Insufficient memory available.
Classification:
QNX Neutrino, QNX 4
Safety
Cancellation point
No
Interrupt handler
No
Signal handler
No
Thread
Yes
See also:
usbd_alloc(), usbd_free(), usbd_free_urb(), usbd_mphys()
September 10, 2007
Chapter 4 • USB Library Reference
21