Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_alloc.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_alloc.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_alloc.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_alloc.html on line 8
Allocate a memory area to use for data transfers
#include <sys/usbdi.h>
void *usbd_alloc( size_t size );
- size
- The size, in bytes, of the area to allocate.
libusbdi
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. |
To free the memory, use usbd_free().
A pointer to the start of the allocated memory, or NULL if
there's not enough memory.
- ENOMEM
- Insufficient memory available.
QNX Neutrino, QNX 4
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
usbd_alloc_urb(),
usbd_free(),
usbd_free_urb(),
usbd_mphys()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_alloc.html on line 129
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_alloc.html on line 129