<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOReporter_IVars/getElementValues",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOReporter_IVars@F@getElementValues#I#"
  },
  "title" : "getElementValues"
}
-->

# getElementValues

```
virtual const IOReportElementValues * getElementValues(int element_index);
```

## Parameters

`element_index`

- index of the _element in internal array

## Return Value

A pointer to the element values requested or NULL on failure

## Discussion

\abstract Internal method to directly access the values of an element
\discussion Locking: Caller must ensure that the reporter (data) lock is held.
The returned pointer is only valid until unlockReporter() is called.

---

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)