Can't cleanly unload driver

Valdis.Kletnieks at Valdis.Kletnieks at
Fri Dec 27 00:55:50 EST 2013

On Thu, 26 Dec 2013 17:50:52 -0800, Eric Fowler said:

> I did an insmod ./mydriver.ko

> But rmmod reports Module mydriver is not currently loaded.
> But it is in /proc/devices:
> 248 mydriver
> Trying to reload it gives:
> insmod ./mydriver.ko
> Could not insert module mydriver.ko: File exists.

Out of curiosity, what name is reported if you do an 'lsmod' after
loading it?  And what's the reference count on it?  I wonder if
you're ever-so-slightly out of sync someplace (a 'mydriver' in one
place, and 'Mydriver' in another, or something equally misbegotten).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : 

More information about the Kernelnewbies mailing list