flush
Drops and frees all packets currently held by the queue.
Declaration
virtual UInt32 flush();Return Value
Returns the number of packets that were dropped and freed.
Overview
To ensure that all packets are removed from the queue, stop() should be called prior to flush(), to make sure there are no packets in-flight and being delivered to the target.
See Also
Miscellaneous
enqueuefreegetCapacitygetDropCountgetOutputCountgetRetryCountgetSizegetStallCountgetStategetStatisticsDatahandleNetworkDataAccessinitoutputserviceserviceThreadsetCapacitystartstopwithTarget(IONetworkController *, UInt32)withTarget(IONetworkController *, UInt32, UInt32)withTarget(OSObject *, IOOutputAction, UInt32)withTarget(OSObject *, IOOutputAction, UInt32, UInt32)