Is IOUSBFamily/IOKit different for Mac OS X 10.4.7 vs 10.4.6?
Is IOUSBFamily/IOKit different for Mac OS X 10.4.7 vs 10.4.6?
- Subject: Is IOUSBFamily/IOKit different for Mac OS X 10.4.7 vs 10.4.6?
- From: "rohit dhamija" <email@hidden>
- Date: Sat, 22 Jul 2006 01:44:41 +0530
Some time back , I developed the KEXT for my USB control type transfer device which worked fine on Mac OS X 10.3.9 to Mac OS X 10.4.6 OS X but started failing on the upgraded version of Mac OS X 10.4.7ppc
Upon analyzing the code I found that attempting to open the IOUSBDevice was failing for Mac OS X 10.4.7 ppc but the same peice of code worked fine for previous versions of the Mac OS X . Below is the peice of code
//////////////
IOUSBDevice * _device;
...
...
if ( _device && !_device->isOpen() )
{
// Let's attempt to open the device
if ( !_device->open(this) )
{
err = kIOReturnExclusiveAccess;
goto ErrorExit;
}
}
//////////////
The _device->isOpen() worked fine till Mac OS X 10.4.6 but started failing on Mac OS X 10.4.7ppc. Changing _device->isOpen(this) made the code work for Mac OS X 10.4.7 as well as previous versions
Is there any change in IOUSBFamily / IOKit for isOpen() function in Mac OS X 10.4.7 darwin source? Or what may be the reason behind this ?
Please comment.
Thanks and Regards,
--
Rohit Dhamija(M) 9818446545
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden