Allocate a USB Request Block for subsequent URB-based operations
#include <sys/usbdi.h> struct usbd_urb *usbd_alloc_urb( struct usbd_urb *link );
libusbdi
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().
A pointer to the start of the allocated block, or NULL if there isn't enough memory.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
usbd_alloc(), usbd_free(), usbd_free_urb(), usbd_mphys()