I have a problem with use count of kernel module being developed.I'd like to print it for debugging purpose. How can I obtain it from the module code?
Kernel version in question - Linux 2.6.32
I have a problem with use count of kernel module being developed.I'd like to print it for debugging purpose. How can I obtain it from the module code?
Kernel version in question - Linux 2.6.32
module_refcount()
will give you the use count of the module passed.