Q:

Why does lsmod report a use count of -1 for some modules? Is this a bug?

Like
Answer
Comment
Flag
Thanks for your feedback!
A:

1 Answer

rank
1
Like
Comment
Flag
• (REW) There are several possibilities. First: • (DW) No, this is not necessarily a bug. A module may report a use count of -1 if it has a can_unload function, which is called when necessary by the system to determine if it is safe to unload the module. • (REW) But then again, it could be a bug anyway. In that case, you'd normally see the usage count at 0 (or more when it's actually used), and when "something" happens, the usage may drop below zero. If you can repeat this, please drop the driver maintainer an Email. Some modules lack the code to unload. They will deliberately set their usage count to -1 to prevent unloading.  more
tux.org
/lkml 

Related Videos

Add your answer...

Top Answerers

1.
Cheap SSL Certificates
7 Answers in the past week
2.
vanity fair
7 Answers in the past week
3.
Robert Turner
4 Answers in the past week

Top Askers

1.
Frank Bell
2 Questions in the past week
2.
Frank Bigaglow
3 Questions in the past week
3.
Charles McAtee
2 Questions in the past week

Top Supporters

1.
Tom Wagner
9 Likes given in the past week
2.
Susan Brunner
3 Likes given in the past week
3.
CableAnd OtherThings Too
2 Likes given in the past week
...