<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Modules - Revision history</title>
		<link>https://www.slackwiki.com/index.php?title=Modules&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.40.0</generator>
		<lastBuildDate>Wed, 08 Apr 2026 01:01:51 GMT</lastBuildDate>
		<item>
			<title>Erik: Copy from old</title>
			<link>https://www.slackwiki.com/index.php?title=Modules&amp;diff=136&amp;oldid=prev</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=Modules&amp;diff=136&amp;oldid=prev</guid>
			<description>&lt;p&gt;Copy from old&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When you are compiling a kernel for the first time asking the question&lt;br /&gt;
to yourself should I module this or compile this in the kernel? Well&lt;br /&gt;
the answer to this question is not an exact science. Meaning that it&lt;br /&gt;
depends on what you believe in yourself. The following are a few&lt;br /&gt;
things that I like to follow when I compile a kernel:&lt;br /&gt;
&lt;br /&gt;
1. Always compile the root file system in the kernel because without the root file system mounted, How can the kernel load the module:)&lt;br /&gt;
&lt;br /&gt;
2. I like to compile my networking card into the kernel. The reason being is what happens if the modules screw up, I would like to be able to SSH into the box and fix it.&lt;br /&gt;
&lt;br /&gt;
3. Iptables and networking OPTIONS I like to compile as modules, because sometimes I may not need them loaded.&lt;br /&gt;
&lt;br /&gt;
4. IDE chipsets (or SCSI chipsets (if you boot from a SCSI disk)) should NOT be compiled as a module because the devices are needed to boot the system and is required to be loaded BEFORE modules are loaded.&lt;br /&gt;
&lt;br /&gt;
::MEANING: If you boot from an IDE hard-drive but make the IDE drivers a module, your system will never boot! Your boot device driver(s) MUST be compiled into the kernel so the system can start up so that it can later load modules.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now remember that Linux is a monolithic kernel so when you load&lt;br /&gt;
modules the modules go into the kernel space. This would make it so&lt;br /&gt;
modules run at the SAME speed as if you were to compile the modules&lt;br /&gt;
into the kernel. My philosophy is that if you REALLY need to load&lt;br /&gt;
something on startup ( like root file system, or IDE/ATAPI support)&lt;br /&gt;
then you should compile it into the kernel. The other stuff like ALSA/&lt;br /&gt;
Networking Options/USB/I2C/Etc and stuff like that can be unloaded and reloaded&lt;br /&gt;
which would make sense if you put them as modules. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is just some advice and it is not 100% correct because some&lt;br /&gt;
people follow their own strategy when compiling kernels. This is more&lt;br /&gt;
like a recommendation:)&lt;br /&gt;
&lt;br /&gt;
==Listing Loaded Modules==&lt;br /&gt;
&amp;lt;code&amp;gt;lsmod&amp;lt;/code&amp;gt; will produce a list of modules that the kernel has loaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Manually Loading a Module==&lt;br /&gt;
&amp;lt;code&amp;gt;modprobe &amp;lt;i&amp;gt;module&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt; will manually load a module (if the module exists).&lt;br /&gt;
&lt;br /&gt;
EXAMPLE: &amp;lt;code&amp;gt;modprobe 8139too&amp;lt;/code&amp;gt; will load the 8139too ethernet driver.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Checking To See If A Module Exists==&lt;br /&gt;
&lt;br /&gt;
EASY WAY: &amp;lt;code&amp;gt;modprobe &amp;lt;i&amp;gt;module&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt; - if the modules doesn't exist (or has a problem), you will get an error message.&lt;br /&gt;
&lt;br /&gt;
HARDER WAY: &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; into the &amp;lt;code&amp;gt;/lib/modules/2.X.X/&amp;lt;/code&amp;gt; directories and start poking around for it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tips]]&lt;/div&gt;</description>
			<pubDate>Thu, 04 Jun 2009 05:21:23 GMT</pubDate>
			<dc:creator>Erik</dc:creator>
			<comments>https://www.slackwiki.com/Talk:Modules</comments>
		</item>
</channel></rss>