LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   howto check module version under linux ? (http://www.linuxquestions.org/questions/showthread.php?t=419555)

cccc 02-25-2006 06:28 PM

howto check module version under linux ?
 
hi

howto check module version under linux, for example the vesion of the madifi driver ?

greetings
cccc

Electro 02-25-2006 07:13 PM

Use the utility /sbin/modinfo.

Rulatir 03-13-2010 05:14 PM

Quote:

Originally Posted by Electro (Post 2124023)
Use the utility /sbin/modinfo.

No joy. It tells the kernel version number, but not the module version number.

Electro 03-13-2010 05:44 PM

Quote:

Originally Posted by Rulatir (Post 3897199)
No joy. It tells the kernel version number, but not the module version number.

It should be posted if the developer included in module info section, but not all them do. If it is not there, check in /sys or /proc. Since every developer writes in a proprietary way, you have to find it on your own. For example nVdidia states its version at /proc/driver/nvidia/version.

BTW, this is an old thread.

sarovasc 02-26-2013 01:34 PM

I know this is a really old thread,but just in case anyone get in here trying to find out how to get information about a module (such as I did),you can get it with modinfo.

Code:

#modinfo module-file
Sample output:
Code:

# modinfo megaraid_sas
filename:      /lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/megaraid/megaraid_sas.ko
description:    LSI MegaRAID SAS Driver
author:        megaraidlinux@lsi.com
version:        06.504.01.00
license:        GPL
srcversion:    DB02E0DDF28253336EC1780
alias:          pci:v00001000d0000005Dsv*sd*bc*sc*i*
alias:          pci:v00001000d0000005Bsv*sd*bc*sc*i*
alias:          pci:v00001028d00000015sv*sd*bc*sc*i*
alias:          pci:v00001000d00000413sv*sd*bc*sc*i*
alias:          pci:v00001000d00000071sv*sd*bc*sc*i*
alias:          pci:v00001000d00000073sv*sd*bc*sc*i*
alias:          pci:v00001000d00000079sv*sd*bc*sc*i*
alias:          pci:v00001000d00000078sv*sd*bc*sc*i*
alias:          pci:v00001000d0000007Csv*sd*bc*sc*i*
alias:          pci:v00001000d00000060sv*sd*bc*sc*i*
alias:          pci:v00001000d00000411sv*sd*bc*sc*i*
depends:        scsi_mod
supported:      external
vermagic:      3.0.13-0.27-default SMP mod_unload modversions
parm:          max_sectors:Maximum number of sectors per IO command (int)
parm:          msix_disable:Disable MSI-X interrupt handling. Default: 0 (int)
parm:          msix_vectors:MSI-X max vector count. Default: Set by FW (int)
parm:          throttlequeuedepth:Adapter queue depth when throttled due to I/O timeout. Default: 16 (int)
parm:          resetwaittime:Wait time in seconds after I/O timeout before resetting adapter. Default: 180 (int)



All times are GMT -5. The time now is 12:37 PM.