DeallocatePackets
Disposes of any resources associated with the specified packets and makes them available for reuse.
Declaration
virtual kern_return_t DeallocatePackets(IOUserNetworkPacket **packets, uint32_t packetsCount);Parameters
- packets:
An array of packets to deallocate. It is a programmer error to specify
NULLor an invalid pointer for this parameter. - packetsCount:
The number of items in the
packetsparameter.
Return Value
kIOReturnSuccess on success, or another value if an error occurred.
Discussion
After you move one or more packets to the appropriate completion queue, call this method to recycle those packets. Recycling packets makes them available for use with new incoming or outgoing packets.