Contents

detachInterface

Detaches an interface client object.

Declaration

virtual void detachInterface(
 IONetworkInterface *interface, 
 bool sync = false);

Parameters

  • interface:

    An interface object to be detached and terminated.

  • sync:

    If true, the interface is terminated synchronously. This may cause this method to block for an indeterminate amount of time.

Overview

This method will verify that the object provided is indeed an IONetworkInterface instance, and then call its terminate() method. Note that an interface object will close and detach from its controller after the data link layer has removed all references to all data structures exposed by the interface. The interface object should be released following this call.

See Also

Miscellaneous