USB_BufferFree (SWI&5538A)
Prev | Chapter 2. Core SWI Calls | Next

## Name

USB_BufferFree (SWI&5538A) — Releases a URB.

## On Entry

R0 | Pointer to URB.

## On Exit

R0 | preserved
R1 | Error code Table A.1

## Use

The driver which allocated the URB with USB_BufferMalloc (SWI&55389) must free it with this call to release the system resources in use. Any driver supplied memory will not be changed or freed by this call, responsibility for freeing this memory remains with the driver.

A driver must not attempt to free a URB that is currently be used in a transaction. Currently there are no checks to enforce this, behavior will be indeterminate.

## Related SWI's

USB_BufferMalloc (SWI&55389)

## Related Information

Chapter 6

Prev | Up | Next
USB_BufferMalloc (SWI&55389) | Home | USB_PipeOpen (SWI&5538B)