ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference

 


IOUSBInterfaceInterface183

Inherits from:

IOUSBInterfaceInterface182

Declared In:

Overview

The object you use to access a USB device interface from user space, returned by the IOUSBFamily version 1.8.3 and above.

Discussion

The functions listed here include all of the functions defined for the IOUSBInterfaceInterface, IOUSBInterfaceInterface182, and some new functions that are available on Mac OS X version 10.1 and later.



Functions

USBInterfaceOpenSeize

Opens the IOUSBInterface for exclusive access.


USBInterfaceOpenSeize


Opens the IOUSBInterface for exclusive access.

IOReturn ( *USBInterfaceOpenSeize)(
    void *self);  
Parameters
self

Pointer to the IOUSBInterfaceInterface.

Return Value

Returns kIOReturnExclusiveAccess if some other task has the interface open already and refuses to close it, kIOReturnError if the connection with the kernel cannot be established or kIOReturnSuccess if successful.

Discussion

If another client has the device open, an attempt is made to get that client to close it before returning.

Before the client can issue commands that change the state of the device, it must have succeeded in opening the device. This establishes an exclusive link between the clients task and the actual device.

Availability
This function is only available with IOUSBInterfaceInterface183 and above.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2009-02-23