Contents

handleOpen

Controls the open / close behavior of an IOService object (overrideable by subclasses).

Declaration

virtual bool handleOpen(
 IOService *forClient, 
 IOOptionBits options, 
 void *arg );

Parameters

  • forClient:

    Designates the client of the provider requesting the open.

  • options:

    Options for the open, may be interpreted by the implementor of handleOpen.

Return Value

trueif the open was successful; false otherwise.

Overview

IOService calls this method in its subclasses in response to the open method, so the subclass may implement the request. The default implementation provides single owner access to an IOService object via open. The object is locked via lockForArbitration before handleOpen is called.

See Also

Miscellaneous