Can't cleanly unload driver

Eric Fowler eric.fowler at
Fri Dec 27 22:33:50 EST 2013

I suspect I am doing something wrong in the code with
register/unregister_chrdev(), but I have been over that code a million
times. It looks fine.

insmod the device, OK
rmmod the device, OK
Check /proc/devices , device # is present
insmod the device again, fails with ERROR: could not insert module
./foobar.ko: Device or resource busy

On Fri, Dec 27, 2013 at 6:59 PM, <Valdis.Kletnieks at> wrote:

> On Fri, 27 Dec 2013 16:10:43 -0800, Eric Fowler said:
> > I have checked that and the problem persists.
> I see insmod and rmmod - but no lsmod output.  Not ls, lsmod. Different
> command.

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list