LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Difference between Static Kernel Module & Dynamic Kernel Module (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-static-kernel-module-and-dynamic-kernel-module-4175419204/)

ram619 07-29-2012 10:40 AM

Difference between Static Kernel Module & Dynamic Kernel Module
 
Can anyone please tell me complete differences between Static Kernel Module & Dynamic Kernel Module.


Thanks in advance!

business_kid 07-29-2012 12:50 PM

Basically, it's what you build in. You can build a module into the kernel but that's usually 'compiled in'

Static & dynamic refer to the way you compile. Every box has basic routines (write on screen, read usb, etc). With static all that code is included for every program that needs it so they are huge. many copies of the same code cen be there, hogging ram.

Dynamic relies on the presence of libraries, and the library is only loaded once no matter how many programs use it. I the libs go missing, your program barfs.

Go dynamic.

ram619 12-11-2012 05:27 AM

Thanks business_kid ............


All times are GMT -5. The time now is 07:46 PM.