---
title: copyElementValues
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/ioreporter_ivars/copyelementvalues
---

# copyElementValues

## Declaration

```occ
virtual IOReturn copyElementValues(int element_index, IOReportElementValues *elementValues);
```

## Parameters

- `element_index`: Index of the element to return values from
- `elementValues`: For returning the content of element values

## Return Value

Return Value Returns the content of an element

## Discussion

Discussion Copies the values of an internal element to *elementValues For efficiently and thread-safely reading _elements. May need to find the index of the element first. Locking: Caller must ensure that the reporter (data) lock is held.
