usbd_alloc_urb
![]() |
![]() |
![]() |
![]() |
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:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
usbd_alloc(), usbd_free(), usbd_free_urb(), usbd_mphys()
![]() |
![]() |
![]() |
![]() |

![[Previous]](prev.gif)
![[Contents]](contents.gif)
![[Index]](keyword_index.gif)
![[Next]](next.gif)
