1
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
3
<!ENTITY docbook "<productname>DocBook</productname>">
4
<!ENTITY sgml "<abbrev>SGML</abbrev>">
7
<!-- Stolen from manual page for docbook-to-man, DocBook source file
8
(C) 1999 W. Borgert debacle@debian.org
10
$Id: docbook-to-man.sgml,v 1.8 2002/04/27 15:28:02 debacle Exp $ -->
15
<email>jcm@jonmasters.org</email>
18
<firstname>Jon</firstname>
19
<surname>Masters</surname>
21
<date>2010-03-01</date>
24
<refentrytitle>depmod</refentrytitle>
25
<manvolnum>8</manvolnum>
28
<refname>depmod</refname> <refpurpose>program to generate <filename>modules.dep</filename> and map files.</refpurpose>
32
<command>depmod</command>
33
<arg><option>-b <replaceable>basedir</replaceable></option></arg>
34
<arg><option>-e</option></arg>
35
<arg><option>-F <replaceable>System.map</replaceable></option></arg>
36
<arg><option>-m</option></arg>
37
<arg><option>-n</option></arg>
38
<arg><option>-v</option></arg>
39
<arg><option><replaceable>version</replaceable></option></arg>
40
<arg><option>-A</option></arg>
43
<command>depmod</command>
44
<arg><option>-e</option></arg>
45
<arg><option>-F<replaceable>System.map</replaceable></option></arg>
46
<arg><option>-n</option></arg>
47
<arg><option>-v</option></arg>
48
<arg><option><replaceable>version</replaceable></option></arg>
49
<arg rep='repeat'><option><replaceable>filename</replaceable></option></arg>
53
<title>DESCRIPTION</title>
55
Linux kernel modules can provide services (called "symbols") for
56
other modules to use (using one of the EXPORT_SYMBOL variants in the
57
code). If a second module uses this symbol, that second module clearly
58
depends on the first module. These dependencies can get quite complex.
61
<command>depmod</command> creates a list of module dependencies
62
by reading each module under
63
<filename>/lib/modules/</filename><replaceable>version</replaceable>
64
and determining what symbols it exports and what symbols it
65
needs. By default, this list is written to
66
<filename>modules.dep</filename>, and a binary hashed version named
67
<filename>modules.dep.bin</filename>, in the same directory. If
68
filenames are given on the command line, only those modules are
69
examined (which is rarely useful unless all modules are listed).
70
<command>depmod</command> also creates a list of symbols provided
71
by modules in the file named <filename>modules.symbols</filename>
72
and its binary hashed version, <filename>modules.symbols.bin</filename>.
75
If a <replaceable>version</replaceable> is provided, then that
76
kernel version's module directory is used rather than the
77
current kernel version (as returned by <command>uname -r</command>).
80
<command>depmod</command> will also generate various legacy map
81
files in the output directory for use by the older hotplug
82
infrastructure. These map files are largely deprecated.
86
<title>OPTIONS</title>
89
<term><option>-a</option> <option>--all</option>
93
Probe all modules. This option is enabled by default if no
94
file names are given in the command-line.
99
<term><option>-A</option> <option>--quick</option>
103
This option scans to see if any modules are newer than the
104
<filename>modules.dep</filename> file before any work is done:
105
if not, it silently exits rather than regenerating the files.
110
<term><option>-b <replaceable>basedir</replaceable></option> <option>--basedir <replaceable>basedir</replaceable></option>
114
If your modules are not currently in the (normal)
116
<filename>/lib/modules/</filename><replaceable>version</replaceable>,
117
but in a staging area, you can specify a
118
<replaceable>basedir</replaceable> which is prepended to
119
the directory name. This
120
<replaceable>basedir</replaceable> is stripped from the
121
resulting <filename>modules.dep</filename> file, so it
122
is ready to be moved into the normal location. Use this option
123
if you are a distribution vendor who needs to pre-generate the
124
meta-data files rather than running depmod again later.
129
<term><option>-C</option> <option>--config <replaceable>file or directory</replaceable></option>
133
This option overrides the default configuration file at
134
<filename>/etc/depmod.conf</filename> (or the
135
<filename>/etc/depmod.d/</filename> directory if that is not found).
140
<term><option>-e</option> <option>--errsyms</option>
144
When combined with the <option>-F</option> option, this
145
reports any symbols which a module needs which are not
146
supplied by other modules or the kernel. Normally, any
147
symbols not provided by modules are assumed to be
148
provided by the kernel (which should be true in a
149
perfect world), but this assumption can break espencially
150
when additionally updated third party drivers are not
151
correctly installed or were built incorrectly.
156
<term><option>-F</option> <option>--filesyms <replaceable>System.map</replaceable></option>
160
Supplied with the <filename>System.map</filename> produced
161
when the kernel was built, this allows the
162
<option>-e</option> option to report unresolved symbols.
167
<term><option>-h</option> <option>--help</option>
171
Print the help message and exit.
176
<term><option>-m</option> <option>--map</option>
180
Enables generation of the obsolete map files.
185
<term><option>-n</option> <option>--dry-run</option>
189
This sends the resulting modules.dep and the various
190
map files to standard output rather than writing them into
191
the module directory.
196
<term><option>-v</option> <option>--verbose</option>
200
In verbose mode, <command>depmod</command> will print (to stdout)
201
all the symbols each module depends on and the module's file name
202
which provides that symbol.
207
<term><option>-V</option> <option>--version</option>
211
Show version of program and exit. See below for caveats when
212
run on older kernels.
219
<title>COPYRIGHT</title>
222
This manual page originally Copyright 2002, Rusty Russell,
223
IBM Corporation. Maintained by Jon Masters and others.
227
<title>SEE ALSO</title>
230
<refentrytitle>depmod.conf</refentrytitle><manvolnum>5</manvolnum>
233
<refentrytitle>depmod.d</refentrytitle><manvolnum>5</manvolnum>
236
<refentrytitle>modprobe</refentrytitle><manvolnum>8</manvolnum>
239
<refentrytitle>modules.dep</refentrytitle><manvolnum>5</manvolnum>
245
<!-- Keep this comment at the end of the file
250
sgml-minimize-attributes:nil
251
sgml-always-quote-attributes:t
254
sgml-parent-document:nil
255
sgml-default-dtd-file:nil
256
sgml-exposed-tags:nil
257
sgml-local-catalogs:nil
258
sgml-local-ecat-files:nil