How to view modules compiled in kernel?

stevovo

Expert Member
Joined
Apr 24, 2008
Messages
1,496
Reaction score
2
Location
Pretoria
I know how to use modprobe and lsmod to view all the modules loaded, but what if I want to view the modules that I compiled IN the kernel?

Am I making sense?

for eg. during the kernel compile process I select ntfs support and compile it directly into the kernel, but now I can't remember if I compiled that option or not. How do I view those modules/support? :confused:
 
Which distro? RH has their own way of doing things.
 
Sorry, I didn't know it matterd :)

It's gentoo

I know I can go back to the source and check if I selected it in the menuconfig but that is waaaay to much trouble. Not to mention the names are not the same
 
find where the config file is. if you compiled yourself it will be in /usr/src/linux/.config
if you used genkernel, it tells you where it is reading the configuration from. if you go to the gentoo installation handbook, i

cat .config | grep "=y"
 
find where the config file is. if you compiled yourself it will be in /usr/src/linux/.config
if you used genkernel, it tells you where it is reading the configuration from. if you go to the gentoo installation handbook, i

cat .config | grep "=y"

Thanks! That's much quicker, however one small question... are those list of modules in the same format as they would have been if one used "modprobe -l"?

Reason I'm asking is because when I run that command I get:

CONFIG_FUSE_FS=y

when checking fuse (just a random example).

Now isn't the normal module name just "fuse"?

I could be wrong though, I just don't remember there being a _fs at the end.

Just asking because I don't wanna read a how to that says that module "this" must be loaded and I end up not finding it because it's listed as "this-that" instead.

Maybe I'm not making sense again :D but thanks a lot for the tip.
 
the y means its compiled into the kernel. that means it won't show up in lsmod iirc
 
Top
Sign up to the MyBroadband newsletter
X