Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

bug modules report
0
10 Posted

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

0

• (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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.