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 (6)

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.
Journalists, nurses and plumbers are among those who drink more coffee than people in technology
A new study of GitHub data reveals characteristics of successful open source projects
Wyvern securely rolls five programming languages into one.
The latest rankings of programming languages show a landscape that’s increasingly fragmented, but still dominated by the old guard
In the competition for developer talent, offering a good cup of joe could give your company an edge
I’ve said it all along that battery life was going to make or break this smart watch. Now that the Moto 360 is finally here, my fears have been confirmed.
Apple has added a list of rules about how developers can use HealthKit, HomeKit, and keyboard data.
App Store rejections may not be the hot-button issue it was a few years ago, but for developers, it's still a chief area of concern. To give app makers a little clarity and direction, Apple published a new page to its Developer site that outlines some of the most common reasons an app gets rejected from the App Store.
A new study of open source project growth suggests that choosing a permissive license can help your community to grow faster
Wishing your Raspberry Pi had more power for all those hardware hacking projects you have planned? There's a new barebones board on the market that may better fit your needs, and right now you can sign-up for your chance to get it for free.
Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+