OSStatus FlushProcessorCache(
AddressSpaceID spaceID,
LogicalAddress base,
By teCount length);
The FlushProcessorCache function forces data from cache out to main memory. The spaceID parameter specifies the address space containing the logical ranges prepared. Current versions of the Mac OS provide only one address space, which it automatically passes to native drivers through DoDriverIO. In general, a driver should always pass the address space it received as a parameter to its DoDriverIO routine in this field. Otherwise, the address space must be specified as kCurrentAddressSpaceID.
FlushProcessorCache may be called from task level, secondary interrupt level, or hardware interrupt level.