Contents

init

Initializes an IOGatedOutputQueue object.

Declaration

virtual bool init(
 OSObject *target, 
 IOOutputAction action, 
 IOWorkLoop *workloop, 
 UInt32 capacity = 0, 
 UInt32 priorities = 1);

Parameters

  • target:

    The object that will handle packets removed from the queue, and is usually a subclass of IONetworkController.

  • 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 true if initialized successfully, false otherwise.

See Also

Miscellaneous