setMemoryDescriptor
Add a portion of an IOMemoryDescriptor to the IOInterleavedMemoryDescriptor.
Declaration
virtual bool setMemoryDescriptor(
IOMemoryDescriptor *descriptor,
IOByteCountoffset,
IOByteCountlength );Parameters
- descriptor:
An IOMemoryDescriptor to be added to the IOInterleavedMemoryDescriptor. Its direction must be compatible with that of the IOInterleavedMemoryDescriptor.
- offset:
The offset into the IOMemoryDescriptor of the portion that will be added to the virtualized buffer.
- length:
The length of the portion of the IOMemoryDescriptor to be added to the virtualized buffer.
Return Value
Returns true the portion was successfully added.
Overview
This method adds the portion of an IOMemoryDescriptor described by the offset and length parameters to the end of the IOInterleavedMemoryDescriptor. A single IOMemoryDescriptor may be added as many times as there is room for it. The offset and length must describe a portion entirely within the IOMemoryDescriptor.