Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: idiot's guide to detaching network drivers?



Tom Rushworth writes:
 >         detachInterface(nif,true);
 >         VDBG_if(9,"net_if detached");
 >         // then get rid of it.
 >         nif->release();

Thank you!

I was missing the nif->release() I had (wrongly) assumed that since I
got the nif pointer from attachInterface(), detachInterface() would
fully clean it up.

After adding nif->release(), I can unload and reload my driver.  Thank
you for saving me from a lot of reboot cycles ;)

Thanks!

Drew
 _______________________________________________
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

References: 
 >idiot's guide to detaching network drivers? (From: Andrew Gallatin <email@hidden>)



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.