lsmod
can show modules currently loaded and how many instances are using them. Just like the infomation shown below.
user@centos7:~$ lsmod | grep fuse
Module Size Used by
fuse 85681 1
I want to know exactly which instance is using the module because I want to unload the module by killing the process.
I have tried enabling CONFIG_MODULE_FORCE_UNLOAD
option when compiling the kernel and typing rmmod -f fuse
, but the system just freezes.