Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How is it possible to see the version of a single kernel module in Linux? With the command lsmod, I can see something like this:

ata_piix               18561  2 
libata                154449  2 pata_acpi,ata_piix
ehci_hcd               34935  0 
scsi_mod              111801  4 sg,sr_mod,sd_mod,libata
usbcore               119612  6 gspca_m5602,gspca_main,usbhid,uhci_hcd,ehci_hcd

But is not possible show the info about a single kernel module. Anybody know how is possible do that?

share|improve this question

migrated from stackoverflow.com Dec 30 '11 at 19:09

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

You can use the modinfo command to list information about modules:

$ /sbin/modinfo your_module_name

I'm not sure a version string is required though, so some modules might not have it.

share|improve this answer
    
Yes there is a field named "srcversion". Thank you :) –  user1056635 Dec 30 '11 at 16:03
add comment

Use modinfo, check this page, and use this syntax:

modinfo your_module

See this question of SO.

Or use pmvers.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.