About Linux FAQ

Browse More FAQs:

Howto: Display list of modules or device drivers in the Linux Kernel

Posted by Vivek on Thursday September 14, 06 @12:13 am

Q. How do I display list of loaded Linux Kernel modules or device drivers?

A. You need to use lsmod program which show the status of loaded modules in the Linux Kernel. Linux use term modules for hardware device drivers.

lsmod is a trivial program which nicely formats the contents of the /proc/modules, showing what kernel modules are currently loaded.

This is an important task. With lsmod you can verify that device driver is loaded for particular hardware. Any hardware device will only work if device driver is loaded.

Task: List or display loaded modules

$ less /proc/modules
$ lsmod

Output:

Module                  Size  Used by
snd_mixer_oss          20096  0
i830                   78596  2
sg                     39168  0
ppdev                   9924  0
sr_mod                 17316  0
vmnet                  39032  12
vmmon                 111788  0
ipv6                  264772  12
ipt_LOG                 6560  1
ipt_state               2080  1
ip_conntrack_ftp       72368  0
iptable_mangle          2880  0
iptable_nat            25156  0
ip_conntrack           35756  3 ipt_state,ip_conntrack_ftp,iptable_nat
....
..
....

First column is Module name and second column is size of modules i..e the output format is module name, size, use count, list of referring modules.

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Linux / UNIX FAQ:

Discussion on This FAQ

  1. Harshal Says:

    Is there any way by which I can know for example “xyz” module is for “xyz” hardware?

  2. Harshal Says:

    Sorry for another comment…

    Actually my objective is to find what device drivers(modules) are loaded for my hardware and is there any hardware which doesn’t have the right module installed for it.

    Thanks
    Harshal.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

~ Last updated on: September 14, 2006

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.