---
title: getVirtualAddress
framework: kernel
role: pseudoSymbol
path: kernel/iomemorymap/1812459-getvirtualaddress
---

# getVirtualAddress

Accessor to the virtual address of the first byte in the mapping.

## Declaration

```occ
virtual IOVirtualAddress getVirtualAddress(); 
```

## Return Value

Return Value A virtual address.

## Overview

Overview This method returns the virtual address of the first byte in the mapping. Since the IOVirtualAddress is only 32bit in 32bit kernels, the getAddress() method should be used for compatibility with 64bit task mappings.

## See Also

### Miscellaneous

- [getAddress()](kernel/iomemorymap/1812407-getaddress.md)
- [getAddressTask](kernel/iomemorymap/1812414-getaddresstask.md)
- [getLength](kernel/iomemorymap/1812419-getlength.md)
- [getMapOptions](kernel/iomemorymap/1812423-getmapoptions.md)
- [getMemoryDescriptor](kernel/iomemorymap/1812429-getmemorydescriptor.md)
- [getPhysicalAddress](kernel/iomemorymap/1812435-getphysicaladdress.md)
- [getPhysicalSegment](kernel/iomemorymap/1812443-getphysicalsegment.md)
- [getSize()](kernel/iomemorymap/1812448-getsize.md)
- [redirect](kernel/iomemorymap/1812465-redirect.md)
- [unmap](kernel/iomemorymap/1812474-unmap.md)
