Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-18-2005, 09:00 PM   #1
Registered: Jan 2005
Distribution: Debian, Ubuntu, RHEL
Posts: 36

Rep: Reputation: 15
Compiling kernel...whats a module?

I'm new to all. Confused on what the difference between saying Y or N or compiling as a module. Brief explanation would be nice. Thanks.
Old 01-18-2005, 09:26 PM   #2
LQ Guru
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
The kernel is a big hunk of binary that is loaded when you boot up Linux. A module is just a piece of that binary code separated from the rest, so it can be loaded only when needed (and unloaded when you're done using it). The idea is that you would compile something you might use (even though not very often) as a module, which makes the overall kernel a little smaller and potentially faster. If the option in question is something you plan to use all the time, then you'd probably want to just compile it into the kernel (by answering "Y").

Last edited by wapcaplet; 01-18-2005 at 09:27 PM.
Old 01-18-2005, 09:29 PM   #3
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ok, selecting Y to an option compiles the code for the option directly into the kernel. It will always be there, whether your using it or not. Saying N means it won't be included, and thus can't be used. Choosing M means it will be compiled into it's own object file. This object file can be installed and removed as needed into the running kernel using the mod-utils (see man pages for insmod, rmmod, modprobe).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling only one module without recompiling the kernel l_9_l Linux - General 8 07-06-2009 10:00 PM
Trouble Compiling Kernel Module... Elric of Grans Linux - General 2 05-31-2006 12:57 AM
Compiling a module/Kernel mismatch fbarre Linux - Newbie 2 09-04-2003 08:26 PM
compiling a kernel module for a different target akaBeaVis Linux - Software 10 06-09-2003 12:47 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration