[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    MOD_USE_COUNT < 0 ?
From:       "Pawel S. Veselov" <vps () unicorn ! niimm ! spb ! su>
Date:       1997-11-28 18:43:12
[Download RAW message or body]

                    Hello, All !

	I am getting really strange output from lsmod command :

[root@unicorn]~# lsmod 
Module                  Size  Used by
appletalk              14076  -1  (autoclean)
sound                 131404   2  (autoclean)
ncpfs                  20720   1  (autoclean)
vfat                   12428   1  (autoclean)
fat                    22964   1  (autoclean) [vfat]
[root@unicorn]~# rmmod appletalk
rmmod: appletalk: Device or resource busy

This is from ddp.c :
---
 * Appletalk interfaces are not incremented untill atalkd is run
 * and are only decremented when they are downed.
---

Actually, I inserted appletalk because something ( m.b. ipx ? ) always tried
to initialize it. At least kerneld always said to me, that it tried to
insert appletalk.o

Such situation is accidental, but it happens only after playing with calling
ifconfig/related programs often enough. Could atalk_destroy_socket()
receive pointer not to atalk socket. There is no checking, so
MOD_DEC_USE_COUNT could be called at wrong time.

And, why kernel doesn't want to remove module, that has negative usage
counter ? May be this should be changed ?

Bye.
--
Help!  I'm trapped in a PDP 11/70!

--
    With best of best regards, Pawel S. Veselov (aka Black Angel)
       internet : vps@unicorn.niimm.spb.su ( mail,finger,talk )
                 Web page : http://www.niimm.spb.su/~vps/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic