driver unloading problem in mac os x snow leopard and lion

pranitha p belavadi

Hi i want to unload a wifi driver which I am having.. It is not the driver which is for Airport.. My driver creates another interface en2.. That driver contains two classes Controller class and interface class. when I try to unload using sudo kextunload name_of_kext then it is giving as one instance of controller class and one instance of interface class are remaining , I cant unload the kext.. when I give sudo dmesg it will show terminate(kIOServiceSynchronous) timeout.. As terminate is failing free() is not getting called. The driver contains only one kext and both controller and interface classes inherits from IO80211Controller class and IO80211Interface class respectively.. Now how can I unload my driver..

 

and also after kextunload while doing gdb, when I gave showallworkloopthreads one passive event source of IOCommandGate is remaining.. when i typed

sudo kextutil -m name_of_kext.kext,

It is showing as

No kernel file specified ; using running kernel for linking name_of_kext.kext appears to be loadable (including linkage for on-disk libraries)

When I gave

sudo kextunload -v name_of_kext.kext/

The output is :

(kernel) Can't unload kext com.name.driver; classes have instances:

(kernel) Kext com.name.driver class nameController has 1 instance

(kernel) Kext com.name.driver class nameInterface has 1 instance

Failed to unload com.name.driver - (libkern/kext) kext is in use or retained (cannot unload)

Please could anybody help me in unloading my driver???

Tags: Mac OS
Answer this Question

Answers

2 total
jimlynch
Vote Up (8)

You might want to check the Mac Developer site for resources that could help you with this.

Mac Developer Program
https://developer.apple.com/programs/mac/

jimlynch
Vote Up (5)

You might want to check the Mac Developer site for resources that could help you with this.

Mac Developer Program
https://developer.apple.com/programs/mac/

Ask a question

Join Now or Sign In to ask a question.
A new study finds that most top universities are now using Python to introduce students to programming
Python has surpassed Java as the top language used to introduce U.S. students to programming and computer science, according to a recent survey posted by the Association for Computing Machinery (ACM).
A non-programming profession which writes a lot of code looks at which languages can solve its problems the fastest
Microsoft's messy mobile strategy and incompatible platforms have frustrated would-be app developers. Can Universal Apps stop the rot?
One veteran shares his tale of being recognized for using his coding skills to make his military unit more efficient
Most of the time, software developers do the right thing. On those rare occasions when they don't, bad things can happen. Avoiding these common coding practices will make your work easier -- and your software more secure and scalable to boot.
Some developers have turned to MIDI devices, for fun or relief, to write software
The .NET framework is an excellent platform if you’re a developer. Less so if you’re a system administrator. Deployment of .NET applications from the developer’s machines to a server environment just about always leads to a yellow screen of death while you sort out version and configuration issues. With ASP.NET vNext, things are about to get a whole lot better.
New research into the reasons for software compilation errors at Google helps to reveal ways to improve developer productivity
Amazon’s new smartphone can track your head movements; what could go wrong?
Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+