Saturday, November 21, 2009

Listing which kernel modules you have built

Every now and then I'm confused about which modules I actually have compiled. And what was the name of that module you just built to fix your lm_sensors or wifi-card. This problem is not as common as it used to be, since a lot of software now seems to load the modules it needs, or even the kernel does it itself. But it's always good to have a clue I guess.

A little handy command to run is:
find /lib/modules/$(uname -r)/ -type f -iname '*.o' -or -iname '*.ko'
This will list all the modules in your module directory for the currently running kernel.

No comments: