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

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...
5 answers Last reply
More about device driver device modular kernel
  1. msconfig.exe
  2. 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?
  3. lsmod

    Anything listed is a module.
  4. 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
  5. 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.
Ask a new question

Read More

Device Driver Devices