Contents

withTarget(IONetworkController *, IOWorkLoop *, UInt32, UInt32)

Factory method that constructs and initializes an IOGatedOutputQueue object.

Declaration

static IOGatedOutputQueue * withTarget(
 IONetworkController *target, 
 IOWorkLoop *workloop, 
 UInt32capacity, 
 UInt32priorities);

Parameters

  • target:

    An IONetworkController object that will handle packets removed from the queue.

  • workloop:

    A workloop object. An IOCommandGate object is created and added to this workloop as an event source.

  • capacity:

    The initial capacity of the output queue.

  • priorities:

    The number of traffic priorities supported

Return Value

Returns an IOGatedOutputQueue object on success, or 0 otherwise.

See Also

Miscellaneous