Free the memory area allocated by usbd_alloc()
#include <sys/usbdi.h> void usbd_free( void* ptr );
libusbdi
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.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
usbd_alloc(), usbd_alloc_urb(), usbd_free_urb(), usbd_mphys()