<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOStateReporter_IVars",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOStateReporter_IVars"
  },
  "title" : "IOStateReporter_IVars"
}
-->

# IOStateReporter_IVars

```
struct IOStateReporter_IVars;
```

## Topics

### Instance Properties

[`int * currentStates;`](/documentation/DriverKit/IOStateReporter_IVars/currentStates)

[`uint64_t * lastUpdateTimes;`](/documentation/DriverKit/IOStateReporter_IVars/lastUpdateTimes)

[`int * swapCurrentStates;`](/documentation/DriverKit/IOStateReporter_IVars/swapCurrentStates)

[`uint64_t * swapLastUpdateTimes;`](/documentation/DriverKit/IOStateReporter_IVars/swapLastUpdateTimes)

### Instance Methods

[`IOStateReporter_IVars(IOService *reportingService, IOReportChannelType channelType, IOReportUnit unit, IOReportCategories categories, int64_t nstates);`](/documentation/DriverKit/IOStateReporter_IVars/IOStateReporter_IVars)

[`virtual IOReturn handleAddChannelSwap(uint64_t channelID, const OSString *symChannelName);`](/documentation/DriverKit/IOStateReporter_IVars/handleAddChannelSwap)

[`virtual IOReturn handleIncrementChannelStateByIndices(int channel_index, int state_index, uint64_t time_in_state, uint64_t intransitions, uint64_t last_intransition);`](/documentation/DriverKit/IOStateReporter_IVars/handleIncrementChannelStateByIndices)

[`virtual IOReturn handleOverrideChannelStateByIndices(int channel_index, int state_index, uint64_t time_in_state, uint64_t intransitions, uint64_t last_intransition);`](/documentation/DriverKit/IOStateReporter_IVars/handleOverrideChannelStateByIndices)

[`virtual IOReturn handleSetStateByIndices(int channel_index, int new_state_index, uint64_t last_intransition, uint64_t prev_state_residency);`](/documentation/DriverKit/IOStateReporter_IVars/handleSetStateByIndices)

[`virtual IOReturn handleSetStateID(uint64_t channel_id, int state_index, uint64_t state_id);`](/documentation/DriverKit/IOStateReporter_IVars/handleSetStateID)

[`virtual void handleSwapCleanup(int swapNChannels);`](/documentation/DriverKit/IOStateReporter_IVars/handleSwapCleanup)

[`virtual IOReturn handleSwapPrepare(int newNChannels);`](/documentation/DriverKit/IOStateReporter_IVars/handleSwapPrepare)

[`virtual IOReturn updateChannelValues(int channel_index);`](/documentation/DriverKit/IOStateReporter_IVars/updateChannelValues)

[`~IOStateReporter_IVars();`](/documentation/DriverKit/IOStateReporter_IVars/~IOStateReporter_IVars)

## Relationships

### Inherits From

[`IOReporter_IVars`](/documentation/DriverKit/IOReporter_IVars)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)