⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modprobe.sgml

📁 用于linux2.6内核支持模块的插入和卸载
💻 SGML
📖 第 1 页 / 共 2 页
字号:
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [  <!ENTITY debian  "<productname>Debian GNU/Linux</productname>">  <!ENTITY docbook "<productname>DocBook</productname>">  <!ENTITY sgml    "<abbrev>SGML</abbrev>">]><!-- Stolen from manual page for docbook-to-man, DocBook source file     (C) 1999 W. Borgert debacle@debian.org     $Id: docbook-to-man.sgml,v 1.8 2002/04/27 15:28:02 debacle Exp $ --><refentry>  <refentryinfo>    <address>      <email>rusty@rustcorp.com.au</email>    </address>    <author>      <firstname>Rusty</firstname>      <surname>Russell</surname>    </author>    <date>2002-12-27</date>  </refentryinfo>  <refmeta>    <refentrytitle>modprobe</refentrytitle>    <manvolnum>8</manvolnum>  </refmeta>  <refnamediv>    <refname>modprobe</refname> <refpurpose>program to add and remove modules from the Linux Kernel</refpurpose>  </refnamediv>  <refsynopsisdiv>    <cmdsynopsis>      <command>modprobe</command>      <arg><option>-v</option></arg>      <arg><option>-V</option></arg>      <arg><option>-C <replaceable>config-file</replaceable></option></arg>      <arg><option>-n</option></arg>      <arg><option>-i</option></arg>      <arg><option>-q</option></arg>      <arg><option>-o</option> <replaceable>modulename</replaceable></arg>      <arg><replaceable>modulename</replaceable></arg>      <arg rep='repeat'><option><replaceable>module parameters</replaceable></option></arg>    </cmdsynopsis>    <cmdsynopsis>      <command>modprobe</command>      <arg>-r</arg>      <arg><option>-v</option></arg>      <arg><option>-n</option></arg>      <arg><option>-i</option></arg>      <arg rep='repeat'><option><replaceable>modulename</replaceable></option></arg>    </cmdsynopsis>    <cmdsynopsis>      <command>modprobe</command>      <arg>-l</arg>      <arg>-t <replaceable>dirname</replaceable></arg>      <arg><option>-a</option></arg>      <arg><option><replaceable>wildcard</replaceable></option></arg>    </cmdsynopsis>    <cmdsynopsis>      <command>modprobe</command>      <arg>-c</arg>    </cmdsynopsis>  </refsynopsisdiv>  <refsect1>    <title>Description</title>    <para>      <command>modprobe</command> intelligently adds or removes a      module from the Linux kernel: note that for convenience, there      is no difference between _ and - in module names.      <command>modprobe</command> looks in the module directory      <filename>/lib/modules/`uname -r`</filename> for all      the modules and other files, except for the optional      <filename>/etc/modprobe.conf</filename> configuration file      (see <citerefentry>	<refentrytitle>modprobe.conf</refentrytitle><manvolnum>5</manvolnum>      </citerefentry>).    </para>    <para>      Note that this version of <command>modprobe</command> does not      do anything to the module itself: the work of resolving symbols      and understanding parameters is done inside the kernel.  So      module failure is sometimes accompanied by a kernel message: see      <citerefentry>	<refentrytitle>dmesg</refentrytitle><manvolnum>8</manvolnum>      </citerefentry>.    </para>    <para>      <command>modprobe</command> expects an up-to-date      <filename>modules.dep</filename> file, as generated by      <command>depmod</command> (see <citerefentry>      <refentrytitle>depmod</refentrytitle><manvolnum>8</manvolnum>      </citerefentry>).  This file lists what other modules each      module needs (if any), and <command>modprobe</command> uses this      to add or remove these dependencies automatically.  See      <citerefentry>      <refentrytitle>modules.dep</refentrytitle><manvolnum>5</manvolnum>      </citerefentry>).    </para>    <para>      If any arguments are given after the      <replaceable>modulename</replaceable>, they are passed to the      kernel (in addition to any options listed in the configuration      file).    </para>  </refsect1>  <refsect1>    <title>OPTIONS</title>    <variablelist>      <varlistentry>        <term><option>-v</option> <option>--verbose</option>        </term>        <listitem>          <para>	    Print messages about what the program is doing.  Usually	    <command>modprobe</command> only prints messages if	    something goes wrong.	  </para>          <para>	    This option is passed through <command>install</command>	    or <command>remove</command> commands to other	    <command>modprobe</command> commands in the	    MODPROBE_OPTIONS environment variable.	  </para>        </listitem>      </varlistentry>      <varlistentry>        <term><option>-C</option> <option>--config</option>        </term>        <listitem>          <para>This option overrides the default configuration file		(<filename>/etc/modprobe.conf</filename>).	  </para>          <para>	    This option is passed through <command>install</command>	    or <command>remove</command> commands to other	    <command>modprobe</command> commands in the	    MODPROBE_OPTIONS environment variable.	  </para>        </listitem>      </varlistentry>      <varlistentry>        <term><option>-c</option> <option>--showconfig</option>        </term>        <listitem>          <para>Dump out the configuration file and exit.	  </para>        </listitem>      </varlistentry>      <varlistentry>        <term><option>-n</option> <option>--dry-run</option>        </term>        <listitem>          <para>This option does everything but actually insert or		delete the modules (or run the install or remove		commands).  Combined with <option>-v</option>, it is		useful for debugging problems.	  </para>        </listitem>      </varlistentry>      <varlistentry>        <term><option>-i</option> <option>--ignore-install</option> <option>--ignore-remove</option>        </term>        <listitem>          <para>This option causes <command>modprobe</command> to		ignore <command>install</command> and		<command>remove</command> commands in the		configuration file (if any), for the module on the		command line (any dependent modules are still subject		to commands set for them in the configuration file).		See <citerefentry><refentrytitle>modprobe.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.	  </para>        </listitem>      </varlistentry>      <varlistentry>        <term><option>-q</option> <option>--quiet</option>        </term>        <listitem>          <para>	    Normally <command>modprobe</command> will report an error	    if you try to remove or insert a module it can't find (and	    isn't an alias or	    <command>install</command>/<command>remove</command>	    command).  With this flag, <command>modprobe</command>	    will simply ignore any bogus names (the kernel uses this	    to opportunistically probe for modules which might exist).	  </para>        </listitem>      </varlistentry>      <varlistentry>        <term><option>-r</option> <option>--remove</option>        </term>        <listitem>          <para>	    This option causes <command>modprobe</command> to remove,	    rather than insert a module.  If the modules it depends on	    are also unused, <command>modprobe</command> will try to	    remove them, too.  Unlike insertion, more than one module	    can be specified on the command line (it does not make	    sense to specify module parameters when removing modules).	  </para>	  <para>	    There is usually no reason to remove modules, but some	    buggy modules require it.  Your kernel may not support	    removal of modules.	  </para>        </listitem>      </varlistentry>      <varlistentry>        <term><option>-V</option> <option>--version</option>        </term>        <listitem>          <para>Show version of program, and exit.  See below for caveats when run on older kernels.</para>        </listitem>      </varlistentry>      <varlistentry>        <term><option>-f</option> <option>--force</option>        </term>        <listitem>          <para>	    Try to strip any versioning information from the module,	    which might otherwise stop it from loading: this is the	    same as using both <option>--force-vermagic</option> and	    <option>--force-modversion</option>.  Naturally, these	    checks are there for your protection, so using this option	    is dangerous.	 </para>	 <para>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -