---
title: GetIdlePolicy
framework: usbdriverkit
role: symbol
role_heading: Instance Method
path: usbdriverkit/iousbhostinterface/getidlepolicy
---

# GetIdlePolicy

Gets the current idle suspend timeout for the interface.

## Declaration

```occ
virtual kern_return_t GetIdlePolicy(uint32_t *deviceIdleTimeout);
```

## Parameters

- `deviceIdleTimeout`: A pointer to a variable. On return, the variable contains the amount of time, in milliseconds, to wait after all pipes are idle before suspending the device.

## Return Value

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

## See Also

### Configuring the Interface

- [GetFrameNumber](usbdriverkit/iousbhostinterface/getframenumber.md)
- [GetPortStatus](usbdriverkit/iousbhostinterface/getportstatus.md)
- [SelectAlternateSetting](usbdriverkit/iousbhostinterface/selectalternatesetting.md)
- [SetIdlePolicy](usbdriverkit/iousbhostinterface/setidlepolicy.md)
- [tIOUSBHostPortStatus](usbdriverkit/tiousbhostportstatus.md)
