
© 2007, QNX Software Systems GmbH & Co. KG. usbd
_
alloc
_
urb()
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
Comentários a estes Manuais