Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
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:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
usbd_alloc(), usbd_alloc_urb(), usbd_free_urb(), usbd_mphys()
![]() |
![]() |
![]() |
![]() |

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