withTarget(OSObject *, IOOutputAction, IOWorkLoop *, UInt32)
Factory method that constructs and initializes an IOGatedOutputQueue object.
Declaration
static IOGatedOutputQueue * withTarget(
OSObject *target,
IOOutputAction action,
IOWorkLoop *workloop,
UInt32 capacity = 0);Parameters
- target:
The object that will handle packets removed from the queue.
- action:
The function 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.
Return Value
Returns an IOGatedOutputQueue object on success, or 0 otherwise.