setMapping
Establishes an already existing mapping.
Declaration
virtual OSPtr<IOMemoryMap> setMapping(task_t task, IOVirtualAddress mapAddress, IOOptionBits options);Parameters
- task:
Address space in which the mapping exists.
- mapAddress:
Virtual address of the mapping.
- options:
Caching and read-only attributes of the mapping.
Return Value
A IOMemoryMap object created to represent the mapping.
Discussion
This method tells the IOMemoryDescriptor about a mapping that exists, but was created elsewhere. It allows later callers of the map method to share this externally created mapping. The IOMemoryMap object returned is created to represent it. This method is not commonly needed.