Contents

complete

Complete processing of DMA mappings after an I/O transfer is finished.

Declaration

virtual IOReturn complete(bool invalidateCache, bool synchronize);

Parameters

  • invalidCache:

    Invalidate the caches for the memory descriptor. Defaults to true for kNonCoherent and is ignored by the other types.

  • synchronize:

    Copy any buffered data back to the target IOMemoryDescriptor. Defaults to true, if synchronize() is being used to explicitly copy data, passing false may avoid an unneeded copy.

Return Value

kIOReturnNotReady if not prepared, kIOReturnSuccess otherwise.

Discussion

This method should not be called unless a prepare was previously issued; the prepare() and complete() must occur in pairs, before and after an I/O transfer

See Also

Preparing the Transfer Operation