Name

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

On Entry

R0Pointer to URB.

On Exit

R0preserved
R1Error 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