• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

How to remove a LKM when it's being used

I want to remove a LKM ,but it show me that it's being used like:
Module          Size     Used by
someLKM      35768  1

How can I know who is using this LKM?thanks
1 Solution
As you want to remove the module from the running system you will know something about the module.
There will be devices associated with the module. Use
lsof -nP
to look for the process that uses the device in question.
It'll be something like
lsof -nP|grep /dev/whatever_the_associated_device_is

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now