Hi All, How to check which are all the modules are inserted for a particular device in linux?
For Example, I have a device, I inserted it and it is working fine after I inserted, but I don't know what are all the modules are inserted for that particular device. So how can I check that one?
Hi All,
How to check which are all the modules are inserted for a particular device in linux?
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Thu, Dec 11, 2014 at 09:52:06PM +0530, p.rameshbabu@globaledgesoft.com wrote:
For Example,
I have a device, I inserted it and it is working fine after I inserted, but I don't know what are all the modules are inserted for that particular device. So how can I check that one?
The book, Linux Kernel in a Nutshell, free online, has a chapter that helps you figure this type of thing out, with scripts you can run. Try looking at that, it's not a "simple" question to determine at times. Hope this helps, greg k-h
On Thu, Dec 11, 2014 at 2:22 PM, <p.rameshbabu@globaledgesoft.com> wrote:
For Example,
I have a device, I inserted it and it is working fine after I inserted, but I don't know what are all the modules are inserted for that particular device. So how can I check that one?
Hi All,
How to check which are all the modules are inserted for a particular device in linux?
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________
Hi, You can : To see which drivers it's using $ ls -l ls -l /sys/class/net/eth0/device/driver lrwxrwxrwx 1 root root 0 Dec 9 08:28 /sys/class/net/eth0/device/driver -> ../../../bus/pci/drivers/e1000e To see what else modules are using this module $ ls -l /sys/module/e1000e/holders/ Total 0 Thanks -- Lucas Tanure +55 (19) 988176559
It looks like `lspci -k` is what you want. On 12/11/2014 11:12 AM, p.rameshbabu@globaledgesoft.com wrote:
Hi All,
How to check which are all the modules are inserted for a particular device in linux?
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Kind regards, b.
participants (5)
-
Andrej Manduch -
Greg KH -
Lucas Tanure -
p.rameshbabu@globaledgesoft.com -
Valdis.Kletnieks@vt.edu