|
ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference
|
IOOutputQueue.h |
| Includes: |
A packet queue that supports multiple producers and a single consumer.
OutputCommands |
A command requested by the target.
enum { kIOOutputCommandMask = 0xff00, kIOOutputCommandNone = 0x0000, kIOOutputCommandStall = 0x0100 };
kIOOutputCommandMaskDefine the command field in the return code.
kIOOutputCommandNoneNo command.
kIOOutputCommandStallA command to stall the queue.
OutputHandlerReturnCodes |
Common return codes returned by the target's output handler.
enum { kIOReturnOutputSuccess = ( kIOOutputStatusAccepted | kIOOutputCommandNone), kIOReturnOutputDropped = ( kIOOutputStatusDropped | kIOOutputCommandNone), kIOReturnOutputStall = ( kIOOutputStatusRetry | kIOOutputCommandStall) };
kIOReturnOutputSuccessPacket was accepted.
kIOReturnOutputDroppedPacket was dropped.
kIOReturnOutputStallStall the queue and retry the same packet when the queue is restarted.
OutputPacketStatus |
The status of the packet sent to the target.
enum { kIOOutputStatusMask = 0x00ff, kIOOutputStatusAccepted = 0x0000, kIOOutputStatusDropped = 0x0001, kIOOutputStatusRetry = 0x0002 };
kIOOutputStatusMaskDefine the status field in the return code.
kIOOutputStatusAcceptPacket was accepted by the target.
kIOOutputStatusDroppedPacket accepted, but was also dropped.
kIOOutputStatusRetryTarget ran out of resources, and is unable to accept the packet. The ownership of the packet reverts back to the queue.
|
Last Updated: 2008-12-19