Hi. I'm working on a USB serial driver. My driver is matching on 
IOUSBHostInterface. It gets a pointer to an IOUSBHostDevice by calling 
getProvider() on the IOUSBHostInterface. 

The problem I'm having is that I see the ioclasscount of IOUSBHostDevice go up 
and not come back down as the device is repeatedly connected and disconnected. 
The ioclasscount of IOUSBHostInterface goes up and then back down as I would 
expect.

I'm not calling retain() on the device. I am calling open(), deviceRequest(), 
and close() the device object. I am also calling getConfigurationDescriptor() 
and getDeviceDescriptor() on this object in various places. I am not explicitly 
retaining or releasing this object anywhere.

My kext unloads correctly. I do not have any dangling instances of my device 
driver class.

Any idea as to what I should look for to figure out why the IOUSBHostDevice 
class is not being destructed?


Thank you.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/usb/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to