📄 doc063.htm
字号:
<html><body><a href="doc064.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc062.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr><h2><a name="s8.6">8.6 Kernel Daemon Configuration</a></h2><title>Kernel Daemon Configuration</title><p>As discussed in Chapter <a href="doc036.html#s5">5</a>, Red Hat Linuxincludes <tt>kerneld</tt>, the Kernel Daemon, which automatically loadssome software and hardware support into memory as it is needed, andunloads it when it is no longer being used.<p>The tool shown in Figure <a href="doc063.html#f38">38</a> manages the configurationfile for kerneld. While kerneld can load some things, such asfilesystems, without explicit configuration, it needs to be told whathardware support to load when it is presented with a generic hardwarerequest.<p><p><a name="f38"></a><center><img src="img033.gif"></center><p><center>Figure 38:Kernel Module Management</center><p><p>For instance, when the kernel wants to load support for ethernet,kerneld needs to know which ethernet card you have, and if yourethernet card requires special configuration, it needs to know aboutthat, too.<p><h3><a name="s8.6.1">8.6.1 Changing Module Options</a></h3><title>Changing Module Options</title><p>To change the options being given to a module when it is loaded, clickon the line to select it, then click the <b>Edit</b> button.kernelcfg will bring up a window which looks like Figure<a href="doc063.html#f39">39</a> The options which kernelcfg knows about them(normally all available options) each have their own field. Normally,you will want to ignore the <b>Other arguments</b> field. Some modulesnormally take no arguments; just in case, they have an <b>Arguments</b>field which allows you to enter configuration information.<p><p><a name="f39"></a><center><img src="img034.gif"></center><p><center>Figure 39:Editing Module Options</center><p><p><h3><a name="s8.6.2">8.6.2 Changing Modules</a></h3><title>Changing Modules</title><p>To change which module gets invoked to provide a generic service, suchas an ethernet card or SCSI host adapter module, you need to delete theold one and add a new one. To delete a module, select it by clickingon it, then click on <b>Delete</b>. Then click on <b>Add</b> toadd the new module, as explained in the following section.<p>If you have changed your SCSI controller (<tt>scsi_hostadapter</tt>),remember to make a new initial ramdisk with the <tt>/sbin/mkinitrd</tt>command as documented in section <a href="doc037.html#s5.1.2">5.1.2</a>.<p><h3><a name="s8.6.3">8.6.3 Adding Modules</a></h3><title>Adding Modules</title><p>To add a module of any type, click on the <b>Add</b> button. Youwill be presented with a dialog box (Figure <a href="doc063.html#f40">40</a>)asking you to choose a module type. Ethernet is <tt>eth</tt>, Token Ringis <tt>tr</tt>, SCSI controllers are <tt>scsi_hostadapter</tt>, and so on.Click <b>OK</b> to continue to<p><p><a name="f40"></a><center><img src="img035.gif"></center><p><center>Figure 40:Adding a module</center><p><p>the next dialog box. If there is more than one module which can beused for the module type you have chosen, you will be presented with adialog box (Figure <a href="doc063.html#f41">41</a>) which asks which moduleyou want to use, and may also ask for specifics about the type ofmodule; for ethernet, for example, you need to choose from <tt>eth0</tt>,<tt>eth1</tt>, etc. When you are done, click <b>OK</b> again tocontinue to specify any module options in the next dialog box (Figure<a href="doc063.html#f41">41</a>), which is the same as the dialog for editing amodule. <p><p><a name="f41"></a><center><img src="img036.gif"></center><p><center>Figure 41:Selecting from available modules</center><p><p><h3><a name="s8.6.4">8.6.4 Restarting Kerneld</a></h3><title>Restarting Kerneld</title><p>The changes that you make with the Kernel Daemon Configuration toolwill be made in the <tt>/etc/conf.modules</tt> file, which kerneld readswhenever it is started. Once you have made changes, you can restartkerneld by clicking on the <b>Restart kerneld</b> button. This will<b>not</b> cause any modules which are currently in use to be reloaded,it will only notify kerneld to use the configuration when it loads moremodules in the future.<p><p><hr><a href="doc064.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc062.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -