enum IOOQReturnAction { kIOOQReturnActionMask = 0xff00, kIOOQReturnActionNone = 0x0000, kIOOQReturnActionStall = 0x0100, // kIOOQReturnActionDefer = 0x0200, /* (not used) */ };
The target's output handler is responsible for generating a return code containing the status, and an action for the queue. The target's output handler must never call any of the queue methods. The defined action codes are:
Name Description kIOOQReturnActionMask A mask for the action field in the 32-bit return value. kIOOQReturnActionNone No action is required. kIOOQReturnActionStall Stall the queue. A service() call will restart the queue.
enum IOOQReturnStatus { kIOOQReturnStatusMask = 0x00ff, kIOOQReturnStatusSuccess = 0x0000, kIOOQReturnStatusDropped = 0x0001, kIOOQReturnStatusRetry = 0x0002, };
The target's output handler is responsible for generating a return code containing the status, and an action for the queue. The target's output handler must never call any of the queue methods. The defined status codes are:
Name Description kIOOQReturnStatusMask A mask for the status field in the 32-bit return value. kIOOQReturnStatusSuccess Packet was accepted. kIOOQReturnStatusDropped Packet accepted, but was also dropped. kIOOQReturnStatusRetry Packet not accepted, retry sending the same packet.
enum IOOQState { kIOOQStateStopped = 0, kIOOQStateRunning, kIOOQStateStalled, };
Name Description kIOOQStateStopped The queue is not running. A start() call will start the queue. kIOOQStateRunning The queue is currently running. A stop() call will stop it. kIOOQStateStalled A running queue was stalled. Call service() or stop(), to respectively restart or stop the queue.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)