<div dir="ltr">I have checked that and the problem persists. <div><br></div><div><div>[eric@localhost parprt]$ ls -la /lib/modules/`uname -r`/build</div><div>lrwxrwxrwx. 1 root root 23 Dec 23 17:06 /lib/modules/3.12.6/build -> /home/eric/build/kernel</div>
<div>[eric@localhost parprt]$ pwd</div><div>/home/eric/drivers/parprt</div><div>[eric@localhost parprt]$ ls -la /lib/modules/`uname -r`/build</div><div>lrwxrwxrwx. 1 root root 23 Dec 23 17:06 /lib/modules/3.12.6/build -> /home/eric/build/kernel</div>
<div>[eric@localhost parprt]$ ls -la *.ko</div><div>-rw-rw-r--. 1 eric eric 86187 Dec 27 15:18 foobar.ko</div><div><br></div><div><div>[eric@localhost parprt]$ su</div><div>Password:****</div><div>[root@localhost parprt]# /sbin/insmod ./foobar.ko</div>
<div>insmod: ERROR: could not insert module ./foobar.ko: File exists</div><div><div>[root@localhost parprt]# rmmod foobar</div><div>rmmod: ERROR: Module foobar is not currently loaded</div><div>[root@localhost parprt]# rmmod foobar.ko</div>
<div>rmmod: ERROR: Module foobar is not currently loaded</div><div><div>[root@localhost parprt]# modinfo foobar</div><div>modinfo: ERROR: Module foobar not found.</div></div></div></div><div><br></div><div><br></div><div>
<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 26, 2013 at 9:55 PM, <span dir="ltr"><<a href="mailto:Valdis.Kletnieks@vt.edu" target="_blank">Valdis.Kletnieks@vt.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, 26 Dec 2013 17:50:52 -0800, Eric Fowler said:<br>
<br>
> I did an insmod ./mydriver.ko<br>
<br>
</div><div class="im">> But rmmod reports Module mydriver is not currently loaded.<br>
><br>
> But it is in /proc/devices:<br>
> 248 mydriver<br>
><br>
> Trying to reload it gives:<br>
> insmod ./mydriver.ko<br>
><br>
> Could not insert module mydriver.ko: File exists.<br>
<br>
</div>Out of curiosity, what name is reported if you do an 'lsmod' after<br>
loading it? And what's the reference count on it? I wonder if<br>
you're ever-so-slightly out of sync someplace (a 'mydriver' in one<br>
place, and 'Mydriver' in another, or something equally misbegotten).<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">cc:NSA<br></div>
</div>