Sign in with
Sign up | Sign in
Your question

How to know device driver for a device is Modular or in kernel

Last response: in Linux/Free BSD
Share
January 18, 2013 5:07:21 PM

can anyone tell me? how to check that a device driver is in kernel or modular... means that is it loaded at system booting time or later when its functionality is needed...
January 20, 2013 7:37:55 AM

I may be wrong, but I don't think that msconfig.exe is going to be much use on Linux.

OP - can you explain your exact requirements? Do you mean on a system where the driver is running (in which case use "lsmod")? Why exactly do you need to know this?
m
0
l
Related resources
January 20, 2013 1:51:19 PM

lsmod

Anything listed is a module.
m
0
l
January 27, 2013 3:25:11 PM

Actually this question was asked to me in an Interview... and Ans is:->

You can check the kernel configuration in : /"usr/src/linux-headers-2.6.26-2-amd64/.config" if <your module>=m then modular otherwise <your module =Y>

you can use following command....

$ grep CONFIG_NTFS_FS /usr/src/linux-headers-2.6.26-2-amd64/.config

CONFIG_NTFS_FS=m
m
0
l
January 27, 2013 3:37:38 PM

An accurate answer only if you have the Linux sources installed on your machine (and if you've never actually configured the kernel for compilation there may not be a .config file). I'd guess that this answer would be incorrect on about 90% of Linux installations. It certainly wouldn't hold for most default installations of Ubuntu, SuSE, fedora, or the like. And, of course, you would need to adjust that command to match your kernel version.
m
0
l
!