Open
Opens a session to the PCI device.
Declaration
kern_return_t Open(IOService *forClient, IOOptionBits options);Parameters
- forClient:
The service object that is opening the session. Typically, you specify your driver’s custom Ioservice object.
- options:
Additional options for opening the session.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.
Discussion
This method gives the specified IOService object exclusive access to the PCI device. It also gives the service object access to the PCI device’s configuration and aperture space.