LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   To compile or to load as module ? (https://www.linuxquestions.org/questions/linux-newbie-8/to-compile-or-to-load-as-module-140232/)

synapse 01-29-2004 11:37 PM

To compile or to load as module ?
 
Hi all

I was wondering is it better to compile your hardware etc into your kernel or is it better to load them as modules.

I know there are a few options that have to be compiled in, but just as a matter of interest what is the norm.

I guess compiling into the kernel is really hardware dependant but then so is it if you only load the modules that are required?


:Pengy:

UltimaGuy 01-29-2004 11:57 PM

It depends on the hardware. But the best thing is modularisation, as it makes your kernel smaller.So, put it into modules.

SciYro 01-30-2004 12:28 AM

just comile in what you wil defidently need for booting and using the kernel, anyhitng that will be used only like half tiem or are there just in case should be a module if possbile, like if you want a GUI and not CLI then compile in unix domain sockets, if you are using the comand line more then its up to you wethere you watn it as a module or to comile it in as its needed to start x, but not needed to run the terminal

Skyline 01-30-2004 04:41 AM

Also, modules can be loaded and unloaded on the fly in the running kernel to ensure more efficiency, and to upgrade a modularized driver you just need to recompile the module. If the driver is part of the kernel, you have to recompile the kernel.


All times are GMT -5. The time now is 04:19 PM.