Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Unloading/Reload: Page 1 of 15 (15 Items)
   
Unloading/Reload  
I'm working on a new io-pkt Ethernet driver under 6.4.1, and am 
experiencing some strange behavior.  If I unload the driver (ifconfig 
destroy) and then try to load (mount) a new version, the driver that 
gets "loaded" is frequently the old driver, the one I just unloaded and 
which no longer exists on the disk; i.e., it's as if the unloaded driver 
is still in memory, and an attempt to load a new version simply 
"reactivates" the version still in memory, instead of loading a copy 
from disk.  I realize that this would be the expected action if I had 
multiple interfaces using the one driver and didn't unload all of them, 
but that is not the case.  Even stranger, static variables that should 
be initialized at startup are NOT initialized, but have the same values 
that had just before the driver was unloaded.  All the symptoms seem to 
suggest that for some reason the driver never completely unloaded, but 
I've looked through all the relevant code and can't find anything that 
would explain such behavior.

Anyone has any ideas about what I should look for?


Murf