Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

usbd_free()

Free the memory area allocated by usbd_alloc()

Synopsis:

#include <sys/usbdi.h>

void usbd_free( void* ptr );

Arguments:

ptr
A pointer to the memory area to be freed.

Library:

libusbdi

Description:

The usbd_free() function frees the memory allocated by usbd_alloc(). The function deallocates the memory area specified by ptr, which was previously returned by a call to usbd_mphys().

It's safe to call usbd_free() with a NULL ptr.

Returns:

EOK
Success.

Classification:

QNX Neutrino, QNX 4

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

usbd_alloc(), usbd_alloc_urb(), usbd_free_urb(), usbd_mphys()