Enumerations



IOOQReturnAction

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:

Constants

NameDescription
kIOOQReturnActionMaskA mask for the action field in the 32-bit return value.
kIOOQReturnActionNoneNo action is required.
kIOOQReturnActionStallStall the queue. A service() call will restart the queue.

IOOQReturnStatus

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:

Constants

NameDescription
kIOOQReturnStatusMaskA mask for the status field in the 32-bit return value.
kIOOQReturnStatusSuccessPacket was accepted.
kIOOQReturnStatusDroppedPacket accepted, but was also dropped.
kIOOQReturnStatusRetryPacket not accepted, retry sending the same packet.

IOOQState

enum  IOOQState  {
  kIOOQStateStopped  =  0,
  kIOOQStateRunning,
  kIOOQStateStalled,
};

Constants

NameDescription
kIOOQStateStoppedThe queue is not running. A start() call will start the queue.
kIOOQStateRunningThe queue is currently running. A stop() call will stop it.
kIOOQStateStalledA running queue was stalled. Call service() or stop(), to respectively restart or stop the queue.

© 2000 Apple Computer, Inc. — (Last Updated 2/23/2000)