Contents

open

Requests active access to a provider.

Declaration

virtual bool open(
 IOService *forClient, 
 IOOptionBits options = 0, 
 void *arg = 0 );

Parameters

  • forClient:

    Designates the client of the provider requesting the open.

  • options:

    Options for the open. The provider family may implement options for open; IOService defines only kIOServiceSeize to request the device be withdrawn from its current owner.

Return Value

true if the open was successful; false otherwise.

Overview

IOService provides generic open and close semantics to track clients of a provider that have established an active datapath. The use of open and close, and rules regarding ownership are family defined, and defined by the handleOpen and handleClose methods in the provider. Some families will limit access to a provider based on its open state.

See Also

Miscellaneous