IOPacketQueue
Implements a bounded FIFO queue of mbuf packets.
Declaration
class IOPacketQueue : OSObjectOverview
Packets are removed from the head of the queue (dequeue), and new packets are added to the tail of the queue (enqueue). A spinlock is used to synchronize access to the queue between methods that have a "lock" prefix.
Topics
Miscellaneous
dequeuedequeueAllenqueue(IOPacketQueue *)enqueue(mbuf_t)enqueueWithDropflushfreegetCapacitygetSizeinitWithCapacitylockDequeuelockDequeueAlllockEnqueuelockEnqueueWithDroplockFlushlockPrependpeekprepend(IOPacketQueue *)prepend(mbuf_t)setCapacitywithCapacity
Constants
Instance Variables
Instance Methods
dequeuedequeueAllenqueueenqueueenqueueWithDropflushfreegetCapacitygetMetaClassgetSizeinitWithCapacitylockDequeuelockDequeueAlllockEnqueuelockEnqueueWithDroplockFlushlockPrependpeekprependprependsetCapacity