Contents

doAsyncReadWrite

Start an asynchronous read or write operation.

Declaration

#ifdef __LP64__
 virtual IOReturn doAsyncReadWrite(
 IOMemoryDescriptor *buffer, 
 UInt64 block,
 UInt64 nblks, 
 IOStorageAttributes *attributes, 
 IOStorageCompletion *completion) = 0; 
#else /* !__LP64__ */
virtual IOReturn doAsyncReadWrite(
 IOMemoryDescriptor *buffer, 
 UInt64 block,
 UInt64 nblks, 
 IOStorageAttributes *attributes, 
 IOStorageCompletion *completion); 
#endif 
/* !__LP64__ */

Parameters

  • buffer:

    An IOMemoryDescriptor describing the data-transfer buffer. The data direction is contained in the IOMemoryDescriptor. Responsibility for releasing the descriptor rests with the caller.

  • block:

    The starting block number of the data transfer.

  • nblks:

    The integral number of blocks to be transferred.

  • attributes:

    Attributes of the data transfer. See IOStorageAttributes.

  • completion:

    The completion routine to call once the data transfer is complete.

See Also

Miscellaneous