Flushes the processor cache for mapped memory.
- macOS 10.0+
Task the memory is mapped into.
Virtual address of the memory.
Length of the range to set.
An IOReturn code.
This function flushes the processor cache of an already mapped memory range. Note in most cases it is preferable to use IOMemoryDescriptor::prepare and complete to manage cache coherency since they are aware of the architecture's requirements. Flushing the processor cache is not required for coherency in most situations.