|
ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference
|
IOMbufDBDMAMemoryCursor |
| Inherits from: | |
| Declared In: |
An IOMbufMemoryCursor subclass that outputs a vector of IODBDMADescriptors.
Generates a DBDMA descriptor list from a given mbuf.
Generates a DBDMA descriptor list from a given mbuf.
Factory function that creates and initializes an IOMbufDBDMAMemoryCursor in one operation.
getPhysicalSegments |
Generates a DBDMA descriptor list from a given mbuf.
public
UInt32 getPhysicalSegments( mbuf_t packet, struct IODBDMADescriptor *vector, UInt32 numVectorSegments = 0);
packetThe mbuf packet.
vectorPointer to an array of IODBDMADescriptor for the output list.
numVectorSegmentsMaximum number of IODBDMADescriptors accepted.
Returns the number of segments that were filled in, or 0 if an error occurred.
getPhysicalSegmentsWithCoalesce |
Generates a DBDMA descriptor list from a given mbuf.
public
UInt32 getPhysicalSegmentsWithCoalesce( mbuf_t packet, struct IODBDMADescriptor *vector, UInt32 numVectorSegments = 0);
packetThe mbuf packet.
vectorPointer to an array of IODBDMADescriptor for the output list.
numVectorSegmentsMaximum number of IODBDMADescriptors accepted.
Returns the number of segments that were filled in, or 0 if an error occurred.
Generate a DBDMA descriptor list from a given mbuf. Coalesce mbuf chain when the number of elements in the list exceeds numVectorSegments.
withSpecification |
Factory function that creates and initializes an IOMbufDBDMAMemoryCursor in one operation.
public
static IOMbufDBDMAMemoryCursor * withSpecification( UInt32 maxSegmentSize, UInt32 maxNumSegments);
maxSegmentSizeMaximum allowable size for one segment.
maxNumSegmentsMaximum number of segments.
Returns a new mbuf cursor if successfully created and initialized, 0 otherwise.
See also IOMbufMemoryCursor::initWithSpecification.
|
Last Updated: 2008-12-19