USBLib_ReferenceDeregister (SWI &56340)
Prev | 3.3. Reference management SWIs | Next

## Name

USBLib_ReferenceDeregister (SWI &56340) — Deregisters a reference

## On Entry

R0 | Reference to deregister
R1 | Reference type
0 = reference is an endpoint
1 = reference is a device
2 = reference is a controller

## On Exit

R0, R1 | Preserved

## Use

This call is used by a driver to show it has stopped using a referenced resource. Resources have a reference count which allows the USB system to ensure it does not free a resource which is still in use. Failure to correctly account for these resources will result in memory being lost and in some cases resources which become permanently unavailable untill the USB system is restarted.

## Related SWIs

USBLib_FindDevice (SWI &56340)

USBLib_FindDeviceRef (SWI &56340)

USBLib_FindController (SWI &56340)

USBLib_PipeInfo (SWI &56340)

USBLib_FindEndpoint (SWI &56340)

## Related Information

Chapter 3

Prev | Up | Next
USBLib_HCInfo (SWI &56340) | Home | USBLib_PipeInfo (SWI &56340)