Contents

prepare

Prepare the memory for an I/O transfer.

Declaration

virtual IOReturn prepare(
 IODirection forDirection = forDirection);

Parameters

  • forDirection:

    The direction of the I/O to be performed, or kIODirectionNone for the direction specified by the memory descriptor.

Return Value

An IOReturn code.

Overview

This involves paging in the memory, if necessary, and wiring it down for the duration of the transfer. The complete() method completes the processing of the memory after the I/O transfer finishes. This method need not called for non-pageable memory.

See Also

Miscellaneous