Explorar o código

chapter06: Translate kmod instruction

Xi Ruoyao %!s(int64=7) %!d(string=hai) anos
pai
achega
def3762833
Modificáronse 1 ficheiros con 27 adicións e 28 borrados
  1. 27 28
      chapter06/kmod.xml

+ 27 - 28
chapter06/kmod.xml

@@ -23,8 +23,7 @@
   <sect2 role="package">
     <title/>
 
-    <para>The Kmod package contains libraries and utilities for loading kernel
-    modules</para>
+    <para>Kmod 软件包包含用于加载内核模块的库和工具。</para>
 
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
@@ -39,7 +38,7 @@
   </sect2>
 
   <sect2 role="installation">
-    <title>安装Kmod</title>
+    <title>安装 Kmod</title>
 
     <para>准备安装 Kmod:</para>
 
@@ -51,20 +50,19 @@
             --with-zlib</userinput></screen>
 
     <variablelist>
-      <title>The meaning of the configure options:</title>
+      <title>配置选项的含义:</title>
 
       <varlistentry>
         <term><parameter>--with-xz, --with-zlib</parameter></term>
         <listitem>
-          <para>These options enable Kmod to handle compressed kernel modules.</para>
+          <para>它们允许 Kmod 处理压缩过的内核模块。</para>
         </listitem>
       </varlistentry>
 
       <varlistentry>
         <term><parameter>--with-rootlibdir=/lib</parameter></term>
         <listitem>
-          <para>This option ensures different library related files are placed 
-          in the correct directories.</para>
+          <para>该选项保证一些和库有关的文件被放置在正确的目录中。</para>
         </listitem>
       </varlistentry>
 
@@ -74,18 +72,17 @@
 
 <screen><userinput remap="make">make</userinput></screen>
 
-    <para>该软件包不包含测试套件。that can be run in the
-    LFS chroot environment.  At a minimum the git program is required and
-    several tests will not run outside of a git repository. </para>
+    <para>该软件包不包含能在 LFS chroot 环境下运行的测试套件。
+		测试套件至少需要 git 程序的支持,且有些测试在 git 仓库外不会运行。
+	</para>
 
 <!--
     <para>运行下列命令以测试编译结果:</para>
 
 <screen><userinput remap="test">make check</userinput></screen>
 -->
-    <para>Install the package, and create symlinks for
-    compatibility with Module-Init-Tools (the package that previously handled
-    Linux kernel modules):</para>
+    <para>安装该软件包,并创建与 Module-Init-Tools (曾经用于处理 Linux
+        内核模块的软件包)兼容的符号链接:</para>
 
 <screen><userinput remap="install">make install
 
@@ -105,9 +102,9 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <segtitle>安装的库</segtitle>
 
       <seglistitem>
-        <seg>depmod (link to kmod), insmod (link to kmod), kmod, 
-        lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
-        and rmmod (link to kmod)</seg>
+        <seg>depmod (到 kmod 的链接), insmod (到 kmod 的链接), kmod, 
+        lsmod (到 kmod 的链接), modinfo (到 kmod 的链接), modprobe (到 kmod 的链接),
+        以及 rmmod (到 kmod 的链接)</seg>
         <seg>libkmod.so</seg>
       </seglistitem>
     </segmentedlist>
@@ -120,10 +117,13 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <varlistentry id="depmod">
         <term><command>depmod</command></term>
         <listitem>
-          <para>Creates a dependency file based on the symbols it finds in the
+          <!--para>Creates a dependency file based on the symbols it finds in the
           existing set of modules; this dependency file is used by
           <command>modprobe</command> to automatically load the required
-          modules</para>
+          modules</para-->
+          <para>根据现有模块的符号信息创建依赖关系文件;
+			  <command>modprobe</command>
+			  使用依赖关系文件自动加载需要的模块。</para>
           <indexterm zone="ch-system-kmod depmod">
             <primary sortas="b-depmod">depmod</primary>
           </indexterm>
@@ -133,7 +133,7 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <varlistentry id="insmod">
         <term><command>insmod</command></term>
         <listitem>
-          <para>Installs a loadable module in the running kernel</para>
+          <para>在正在运行的内核中安装可加载模块</para>
           <indexterm zone="ch-system-kmod insmod">
             <primary sortas="b-insmod">insmod</primary>
           </indexterm>
@@ -143,7 +143,7 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <varlistentry id="kmod">
         <term><command>kmod</command></term>
         <listitem>
-          <para>Loads and unloads kernel modules</para>
+          <para>加载或卸载内核模块</para>
           <indexterm zone="ch-system-kmod kmod">
             <primary sortas="b-kmod">kmod</primary>
           </indexterm>
@@ -153,7 +153,7 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <varlistentry id="lsmod">
         <term><command>lsmod</command></term>
         <listitem>
-          <para>Lists currently loaded modules</para>
+          <para>列出当前加载的模块</para>
           <indexterm zone="ch-system-kmod lsmod">
             <primary sortas="b-lsmod">lsmod</primary>
           </indexterm>
@@ -163,8 +163,8 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <varlistentry id="modinfo">
         <term><command>modinfo</command></term>
         <listitem>
-          <para>Examines an object file associated with a kernel module and
-          displays any information that it can glean</para>
+          <para>检验与某个内核模块相关的目标文件,
+          打印它能够收集到的一切信息</para>
           <indexterm zone="ch-system-kmod modinfo">
             <primary sortas="b-modinfo">modinfo</primary>
           </indexterm>
@@ -174,8 +174,8 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <varlistentry id="modprobe">
         <term><command>modprobe</command></term>
         <listitem>
-          <para>Uses a dependency file, created by
-          <command>depmod</command>, to automatically load relevant modules</para>
+          <para>使用一个 <command>depmod</command> 创建的依赖关系文件,
+          自动加载相关模块</para>
           <indexterm zone="ch-system-kmod modprobe">
             <primary sortas="b-modprobe">modprobe</primary>
           </indexterm>
@@ -185,7 +185,7 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <varlistentry id="rmmod">
         <term><command>rmmod</command></term>
         <listitem>
-          <para>Unloads modules from the running kernel</para>
+          <para>从正在运行的内核中卸载模块</para>
           <indexterm zone="ch-system-kmod rmmod">
             <primary sortas="b-rmmod">rmmod</primary>
           </indexterm>
@@ -195,8 +195,7 @@ ln -sfv kmod /bin/lsmod</userinput></screen>
       <varlistentry id="libkmod">
         <term><filename class="libraryfile">libkmod</filename></term>
         <listitem>
-          <para>This library is used by other programs to load and unload kernel
-           modules</para>
+          <para>这个库被其他程序用于加载和卸载内核模块</para>
           <indexterm zone="ch-system-kmod">
             <primary sortas="c-libkmod">libkmod</primary>
           </indexterm>