I was just browsing our forum and come across the following question:
How do I find out detailed information about a Linux Kernel module or device drivers?
You need to use modinfo command to display or show information about a Linux Kernel loaded modules. Use lsmod command to obtain list of loaded modules.
modinfo extracts information from the Linux Kernel modules given on the command line. This is not just useful to find out about information about loaded modules but it can be used to identify modules inserted by crackers/hackers (try less /proc/modules). Also following is a good way to verify output reported by ps ax :
# ps ax | wc -l 77
# ls -d /proc/* | grep [0-9]|wc -l 78
Usually rootkit will install their own ps command, which hides kernel modules. If second output is larger than the first (ps ax) command output take a closer look at your server.
Back to our main question, the modinfo command outputs following information for each module:
=> Module Author
=> Module description
=> Parameter and filename
Task: Display list of modules
$ lsmod $ less /proc/modules
Task: Display information about ide-cd module
$ /sbin/modinfo ide-cd
Task: Display information about rt61 module
$ /sbin/modinfo rt61
You can load modules automatically during Linux system boot sequence by adding a module name to /etc/modules.conf or /etc/modules file.
- Howto: Linux Add or Remove a Linux Kernel Modules / Drivers
- How to test microphone with Audio Linux Sound Architecture ALSA
- How to chroot into linux distro on disk when you can't boot via grub
- Sets volume via command line
- How to identify a device > PCI on linux