---
title: map
framework: kernel
role: pseudoSymbol
path: kernel/iomemorydescriptor/1812830-map
---

# map

Maps an IOMemoryDescriptor into the kernel map.

## Declaration

```occ
virtual IOMemoryMap * map( 
 IOOptionBits options = 0 ); 
```

## Parameters

- `options`: Mapping options as in the full version of the createMappingInTask method, with kIOMapAnywhere assumed.

## Return Value

Return Value See the full version of the createMappingInTask method.

## Overview

Overview This is a shortcut method to map all the memory described by a memory descriptor into the kernel map at any available address. See the full version of the createMappingInTask method for further details.

## See Also

### Mapping to the Other Address Spaces

- [createMappingInTask](kernel/iomemorydescriptor/1812752-createmappingintask.md)
- [createMappingInTask](kernel/iomemorydescriptor/1441859-createmappingintask.md)
- [map](kernel/iomemorydescriptor/1441908-map.md)
- [setMapping](kernel/iomemorydescriptor/1812859-setmapping.md)
- [setMapping](kernel/iomemorydescriptor/1441948-setmapping.md)
