While I can use lsmod in order to show currently active kernel modules, how can I see which drivers are statically built into the kernel AND currently active?

up vote 26 down vote accepted

You could do a cat /lib/modules/$(uname -r)/modules.builtin

From the Kernel Documentaton


This file lists all modules that are built into the kernel. This is used by modprobe to not fail when trying to load something builtin.

If your linux has a /proc/config.gz

That has all the built modules. Copy it elsewhere and unzip it. Open the file everything with a "=M" is built as a module. Everything with a "=Y" is statically built.

hwinfo will list the "Driver:" check the above file to see if it is statically built.

FYI: All statically built drivers are always loaded into memory and ready for action. Without the corresponding hardware they will not do anything, but use memory.

  • 1
    What if there is no /proc/config.gz? – JohnnyFromBF Apr 5 '13 at 13:25
  • Ok I just found a .config file in the directory where I compiled the kernel, that's obviously what you meant. – JohnnyFromBF Apr 5 '13 at 13:51
  • 1
    This file also exists here: /boot/config-$(uname -r). – JohnnyFromBF Apr 5 '13 at 13:58

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.