Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
difference betwean built-in and module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
nkwai
n00b
n00b


Joined: 20 Dec 2005
Posts: 33
Location: Orehovlje, Slovenia

PostPosted: Sun Dec 25, 2005 11:51 am    Post subject: difference betwean built-in and module Reply with quote

Hi!
Can anyone tell me the diference if you buld-in a driver in the kernel or if you compile it as a kernel module. For what I got till now if you compile a vital driver that is needed to boot as a module then the system won't boot. But can't you just compile everything as build-in?
_________________
You can't draw a picture of yesterday, so you're painting your heart with your blood.
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Sun Dec 25, 2005 11:59 am    Post subject: Re: difference betwean built-in and module Reply with quote

nkwai wrote:
Hi!
Can anyone tell me the diference if you buld-in a driver in the kernel or if you compile it as a kernel module. For what I got till now if you compile a vital driver that is needed to boot as a module then the system won't boot. But can't you just compile everything as build-in?


People usually recommend to build seldom needed drivers as modules which can be loaded when needed and build essential drivers straight into kernel.

I'm using a minimal kernel config having only the necessary things in it. I have even removed the module support from the kernel and I have everything built in. Working perfectly.
Back to top
View user's profile Send private message
jmp_
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 294
Location: BCN / Catalonia (Spain)

PostPosted: Sun Dec 25, 2005 12:02 pm    Post subject: Reply with quote

I don't think it's really necessary ask this on a "distro-linux-forum" (gentoo), it's better search some info on the Internet by yourself before to ask this kind of questions.

Anyway, a module (LKM) is only loaded when needed and you can unload it if [not] needed or unused, also it adds modularity to the kernel and permits you to extend it on the fly.

It's highly recommended that you compile your kernel stuff as <module> when available, there's some exceptions but generally.

It's not the better definition of a Loadable Kernel Module but it's enough.

greetings.

Extended info:
http://www.kernelnewbies.org/
http://www.kernel.org/
Google: http://www.dreier.cc/extdata/documents/lkms.pdf [pdf]


Last edited by jmp_ on Sun Dec 25, 2005 12:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Sun Dec 25, 2005 12:28 pm    Post subject: Reply with quote

There is some debate about this. Linus himself argues that staticly compiled modules in the kernel do have some advantages. I've found with some trial and error that certain things work better for me individual compiled in, or as a module.

I currently have my sound, video and NIC drivers as modules for instance.
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Sun Dec 25, 2005 12:46 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Duplicate Threads in favour of topic 414221. Search will reveal more.
_________________
KDE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum