To find out the version number of a kernel module (device driver) on a Linux system, you can use the modinfo
command. modinfo
is a utility that displays information about a loaded kernel module.
Here's an example of how to use modinfo
to display the version number of a kernel module:
$ modinfo <module_name>
Replace <module_name>
with the name of the kernel module. For example:
$ modinfo scsi_mod
This will display information about the scsi_mod
kernel module, including the version number.
You can also use the lsmod
command to list the loaded kernel modules and their version numbers. For example:
$ lsmod | grep <module_name>
Replace <module_name>
with the name of the kernel module.
Note: The specific options and syntax for these commands may vary depending on your Linux distribution and version. Consult the
modinfo
andlsmod
man pages or documentation for your system for more information.
It's also important to note that the version number of a kernel module may not always be relevant or meaningful. Some kernel modules may not have version numbers, or the version number may not be used in a consistent or standardized way. Consult the documentation or source code of the kernel module for more information.