getPreparedOffsetAndLength
Returns the offset and length into the target IOMemoryDescriptor of a prepared IODDMACommand.
Declaration
virtual IOReturn getPreparedOffsetAndLength(
UInt64 *offset,
UInt64 *length);Parameters
- offset:
returns the starting offset in the memory descriptor the DMA command was prepared with. Pass NULL for don't care.
- length:
returns the length in the memory descriptor the DMA command was prepared with. Pass NULL for don't care.
Return Value
An IOReturn code. kIOReturnNotReady if the IODMACommand is not prepared.
Overview
If successfully prepared, returns the offset and length into the IOMemoryDescriptor. Will fail for an unprepared IODMACommand.