USBLib_ReferenceDeregister (SWI &56372)

USBLib_ReferenceDeregister (SWI &56372) — Deregisters a reference

On Entry

R0Reference to deregister
R1Reference type
0 = reference is an endpoint
1 = reference is a device
2 = reference is a controller

On Exit

R0, R1Preserved

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 &5634F)

USBLib_FindDeviceRef (SWI &56350)

USBLib_FindController (SWI &5634E)

USBLib_PipeInfo (SWI &56367)

USBLib_FindEndpoint (SWI &56351)

Related Information

Chapter 3, Driver Initialisation