LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-18-2005, 10:00 PM   #1
TheDude05
Member
 
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, 10:26 PM   #2
wapcaplet
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 10:27 PM.
 
Old 01-18-2005, 10:29 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
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).
 
  


Reply


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 11:00 PM
Trouble Compiling Kernel Module... Elric of Grans Linux - General 2 05-31-2006 01:57 AM
Compiling a module/Kernel mismatch fbarre Linux - Newbie 2 09-04-2003 09:26 PM
compiling a kernel module for a different target akaBeaVis Linux - Software 10 06-09-2003 01:47 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 06:41 PM.

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