USB_DeviceDeregister (SWI&55383)

USB_DeviceDeregister (SWI&55383) — Removes a given device.

On Entry

R0Pointer to device structure
R1Reserved. Must be set to zero.
R2Reserved. Must be set to zero.

On Exit

R0preserved
R1Error code Table A.1, “Error codes used by the USB system”
R2Preserved

Use

The reference to the device structure is deregistered automatically in every case.

Removes a device structure from the USB Module. All endpoints are also removed. The device is also removed from the list of available devices of the corresponding USB host controller driver and service calls are generated. If no references using this device are active the device structure will be removed physically from memory.

This call is normally used only internally by the USB-Hub driver module if it detects that a devices has been unplugged.

Related SWI's

USB_DeviceRegister (SWI&55382)