In this post there is some explanation about why does lsmod
show -2
in 'used by' column. The idea is that the kernel config option CONFIG_MODULE_UNLOAD
was not set.
But what if lsmod
shows -1
only for one specific module while CONFIG_MODULE_UNLOAD
is set in my current kernel? How to debug this muddle?
/sys/module/<module>/refcnt
exist for that specific module? If so, what does it contain?-1
too.