---
title: Reset
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostdevice/reset
---

# Reset

Terminates the device and attempts to reenumerate it.

## Declaration

```occ
virtual kern_return_t Reset();
```

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## Discussion

Discussion This method resets and releases the current IOUSBHostDevice object and all of its children. If the reset and release of the device object are successful, this method creates a new IOUSBHostDevice object and registers it. Don’t call this function from the port workloop thread.

## See Also

### Managing the Device Session

- [Open](usbdriverkit/iousbhostdevice/open.md)
- [Close](usbdriverkit/iousbhostdevice/close.md)
