| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hello, I have an USB driver MyDriver that inherits from IOSerialDriverSync and that is used with pppd to communicate over IP with the device. When I remove the device from the machine the connection does not terminate properly and the driver remains in the registry. Moreover, when I plug in the cable again, the driver does not respond anymore until I reboot. The output of ioreg after the usb cable has been unplugged (MyDriver is the class of the driver): | | | +-o AppleUSBOHCI <class AppleUSBOHCI, registered, matched, active, busy 1, retain count 11> | | | +-o OHCI Root Hub Simulation@18 <class IOUSBRootHubDevice, registered, matched, active, busy 0, retain count 12> | | | | +-o AppleUSBHub <class AppleUSBHub, !registered, !matched, active, busy 0, retain count 4> | | | | +-o IOUSBInterface@0 <class IOUSBInterface, !registered, !matched, active, busy 0, retain count 5> | | | | +-o IOUSBUserClientInit <class IOUSBUserClientInit, !registered, !matched, active, busy 0, retain count 4> | | | | +-o IOUSBDeviceUserClient <class IOUSBDeviceUserClient, !registered, !matched, active, busy 0, retain count 5> | | | +-o IOUSBVendorSpecificDevice@18100000 <class IOUSBDevice, !registered, !matched, inactive, busy 4, retain count 9> | | | +-o MyDriver <class MyDriver, !registered, !matched, inactive, busy 2, retain count 6> | | | | +-o IOSerialStreamSync <class IOSerialStreamSync, !registered, !matched, inactive, busy 2, retain count 6> | | | | +-o IOSerialBSDClient <class IOSerialBSDClient, !registered, !matched, inactive, busy 1, retain count 5> I have tried to call terminate() on the IOSerialStreamSync nub and on MyDriver when I get the kIOMessageServiceIsTerminated, but that does not have any effect. Does anyone know what I am doing wrong? Thanks, Jessie |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-drivers mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-drivers/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.