IOEthernetController and USB problem
IOEthernetController and USB problem
- Subject: IOEthernetController and USB problem
- From: "Beard Rex (Aepix)" <email@hidden>
- Date: Wed, 6 Mar 2002 16:00:54 -0500
There are a lot of questions here...
I'm making a driver that inherits from IOEthernetController
with an IOUSBDevice as it's provider class on OS 10.1
I'm able to install and load and bring it up and pass network traffic.
But when I unplug the USB cable I start to have problems.
1> The network interface never disappears. I still see it with
ifconfig -a. I can't unload my driver with kextunload.
(If my driver didn't come all the way up and running I can
kextunload it just fine, but not if the interface is brought
all the way up.)
If I plug my USB device in again it won't work the second time.
I do see a syslog message when I unplug the cable:
"mach_kernel: WARNING - dll_if_detach called for UP interface"
2> When I try to mark the interface as "down" --ifconfig en1 down --
the Mac crashes. I'd like to be able to interpret that crash dump.
(I don't have a separate machine for debug) I want to look at
the addresses in the stack back trace and match those with
my function addresses, but I can't find any sort of symbol table
map created by Project Builder. Is there any?
Do I need to some how register with some USB thing to be called on unplugs?
If I do, just what code should I run to bring down the interface gracefully?
thanks
Rex Beard <email@hidden>
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.