---
title: map
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iomemorydescriptor/1441908-map
---

# map

Maps an IOMemoryDescriptor into the kernel map.

## Declaration

```occ
virtual OSPtr<IOMemoryMap> map(IOOptionBits options);
```

## 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.

## Discussion

Discussion 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/1812830-map.md)
- [setMapping](kernel/iomemorydescriptor/1812859-setmapping.md)
- [setMapping](kernel/iomemorydescriptor/1441948-setmapping.md)
