
usbd alloc() 2006, QNX Software Systems GmbH & Co. KG.
Allocate memory area to use for data transfers
Synopsis:
#include <sys/usbdi.h>
void *usbd
alloc( size t size );
Description:
The usbd alloc() function allocates a memory area that can then be
used for data transfers. You should use the memory area allocated by
this function, because it’s allocated efficiently and because its
physical address is quickly obtained via usbd
mphys().
The usbd setup *() functions require usbd alloc()’d data buffers.
☞
size Size (in bytes) of the area to be allocated.
To free the memory, use usbd
free().
Returns:
A pointer to the start of the allocated memory, or NULL if there’s not
enough memory.
Errors:
ENOMEM Insufficient memory available.
Classification:
QNX Neutrino, QNX 4
Safety
Cancellation point No
Interrupt handler No
continued.. .
24 Chapter 4 USB Library Reference November 2, 2006
Comentarios a estos manuales