Contents

mapDeviceMemoryWithIndex

Maps a physical range of a device.

Declaration

virtual IOMemoryMap * mapDeviceMemoryWithIndex(
 unsigned intindex, 
 IOOptionBits options = 0 );

Parameters

  • index:

    An index into the array of ranges assigned to the device.

Return Value

An instance of IOMemoryMap, or zero if the index is beyond the count available. The mapping should be released only when access to it is no longer required.

Overview

This method creates a mapping for the IODeviceMemory at the given index, with IODeviceMemory::map(options). The mapping is represented by the returned instance of IOMemoryMap, which should not be released until the mapping is no longer required.

See Also

Miscellaneous