protected:
virtual UInt genPhysicalSegments(struct mbuf * packet, void * vector, UInt maxSegs, bool doCoalesce);
Generates a list of physical segments from the given mbuf.
Result: The number of segments that were filled in is returned, or 0 if an error occurred.
Name Description packet The mbuf packet. vector Void pointer to base of output physical scatter/gather list. Always passed directly onto the OutputSegmentFunc without interpretation by the cursor. maxSegs Maximum number of segments that can be written to segments array. doCoalesce Set to true to perform coalescing when the required number of segments exceeds the specified limit, otherwise abort and return 0.
Result: The coalesce count.public:
UInt getAndResetCoalesceCount();
protected:
virtual bool initWithSpecification(OutputSegmentFunc outSeg, UInt maxSegmentSize, UInt maxNumSegments);
Result: true if the inherited classes and this instance initialized successfully.
Name Description outSeg Function to call to output one physical segment. maxSegmentSize Maximum allowable size for one segment. maxNumSegments Maximum number of segments.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)