---
title: getKeyValue
framework: kernel
role: pseudoSymbol
path: kernel/ioconfigdirectory/1811212-getkeyvalue
---

# getKeyValue

## Declaration

```occ
virtual IOReturn getKeyValue(
 intvalue,
 UInt32 &text,
 OSString **text = NULL); 
```

## Parameters

- `value`: on return, set to the data type reference to variable to store the entry's value
- `text`: if non-zero, on return points to the string description of the field, or NULL if no text found.

## Return Value

Return Value kIOReturnSuccess if the key exists in the dictionary and is of a type appropriate for the value parameter

## Overview

Overview Gets the value for the specified key, in a variety of forms.

## See Also

### Miscellaneous

- [getIndexEntry](kernel/ioconfigdirectory/1811146-getindexentry.md)
- [getIndexKey](kernel/ioconfigdirectory/1811157-getindexkey.md)
- [getIndexType](kernel/ioconfigdirectory/1811166-getindextype.md)
- [getIndexValue](kernel/ioconfigdirectory/1811176-getindexvalue.md)
- [getKeySubdirectories](kernel/ioconfigdirectory/1811186-getkeysubdirectories.md)
- [getKeyType](kernel/ioconfigdirectory/1811199-getkeytype.md)
- [getSubdirectories](kernel/ioconfigdirectory/1811222-getsubdirectories.md)
- [update](kernel/ioconfigdirectory/1811231-update.md)
