<!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>modules.dep</refentrytitle>
    <manvolnum>5</manvolnum>
  </refmeta>
  <refnamediv>
    <refname>modules.dep</refname> <refpurpose>List of module dependencies</refpurpose>
  </refnamediv>
  <refsect1>
    <title>DESCRIPTION</title>

    <para>
      The <filename>modules.dep</filename> as generated by
      module-init-tools <command>depmod</command>, lists the
      dependencies for every module in the directories under
      <filename>/lib/modules/</filename><replaceable>version</replaceable>,
      where <filename>modules.dep</filename> is.
    </para>
    <para>
      Blank lines, and lines starting with a '#' (ignoring spaces) are
      ignored.  Other lines are of the form "filename: [filename]*",
      listing the complete dependencies for the first filename in
      descending order.
    </para>
    <para>
      For example, if
      <filename>/lib/modules/2.5.53/kernel/a.ko</filename> depended on
      <filename>b.ko</filename> and <filename>c.ko</filename> in the
      same directory, and <filename>c.ko</filename> depended on
      <filename>b.ko</filename> as well, the file might look like:
    </para>
    <screen>
# This is a comment.
/lib/modules/2.5.53/kernel/a.ko: /lib/modules/2.5.53/kernel/c.ko /lib/modules/2.5.53/kernel/b.ko
/lib/modules/2.5.53/kernel/b.ko:
/lib/modules/2.5.53/kernel/c.ko: /lib/modules/2.5.53/kernel/b.ko
    </screen>
    <para>
      This file is used by <command>modprobe</command> to know the
      order to load modules (they are loaded right to left, and
      removed left to right).
    </para>
  </refsect1>
  <refsect1>
    <title>COPYRIGHT</title>
    <para>
      This manual page Copyright 2002, Rusty Russell, IBM Corporation.
    </para>
  </refsect1>
  <refsect1>
    <title>SEE ALSO</title>

    <para>
      <citerefentry>
	<refentrytitle>modprobe</refentrytitle><manvolnum>8</manvolnum>
      </citerefentry>
    </para>
  </refsect1>
</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
