Functions
Abstract: Generate a cpu natural physical scatter/gather list from a given
mbuf.
public:
UInt getPhysicalSegments(struct mbuf * packet,
struct IOPhysicalSegment * vector,
UInt numVectorSegments = 0);
Parameters
Name | Description |
packet | The mbuf packet. |
vector | Pointer to an array of IOPhysicalSegments for the output
physical scatter/gather list. |
numVectorSegments | Maximum number of IOPhysicalSegments accepted. |
Result: The number of segments that were filled in is returned, or
0 if an error occurred.
Abstract: Generate a cpu natural physical scatter/gather list from a given
mbuf.
public:
UInt getPhysicalSegmentsWithCoalesce(struct mbuf * packet,
struct IOPhysicalSegment * vector,
UInt numVectorSegments = 0);
Generate a cpu natural physical scatter/gather list from a
given mbuf. Coalesce mbuf chain when the number of segments in the
scatter/gather list exceeds numVectorSegments.
Parameters
Name | Description |
packet | The mbuf packet. |
vector | Pointer to an array of IOPhysicalSegments for the output
physical scatter/gather list. |
numVectorSegments | Maximum number of IOPhysicalSegments accepted. |
Result: The number of segments that were filled in is returned, or
0 if an error occurred.
Abstract: Factory function to create and initialize an
IOMBufNaturalMemoryCursor in one operation, see
IOMBufMemoryCursor::initWithSpecification.
public:
static IOMBufNaturalMemoryCursor * withSpecification(UInt maxSegmentSize,
UInt maxNumSegments);
Parameters
Name | Description |
maxSegmentSize | Maximum allowable size for one segment. |
maxNumSegments | Maximum number of segments. |
Result: A new mbuf cursor if successfully created and initialized,
0 otherwise.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)