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>rusty@rustcorp.com.au
</email>
18 <firstname>Rusty
</firstname>
19 <surname>Russell
</surname>
21 <date>2003-
05-
9</date>
24 <refentrytitle>modinfo
</refentrytitle>
25 <manvolnum>8</manvolnum>
28 <refname>modinfo
</refname> <refpurpose>program to show information about a Linux Kernel module
</refpurpose>
32 <command>modinfo
</command>
33 <arg><option>-
0</option></arg>
34 <arg><option>-F
<replaceable>field
</replaceable></option></arg>
35 <arg><option>-k
<replaceable>kernel
</replaceable></option></arg>
36 <arg rep='repeat'
>modulename|filename
</arg>
39 <command>modinfo -V
</command>
42 <command>modinfo -h
</command>
46 <title>DESCRIPTION
</title>
48 <para><command>modinfo
</command> extracts information from the Linux
49 Kernel modules given on the command line. If the module name is
50 not a filename, then the
51 <filename>/lib/modules/
</filename><replaceable>version
</replaceable>
52 directory is searched, as done by
53 <citerefentry><refentrytitle>modprobe
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
56 <para><command>modinfo
</command> by default lists each attribute
57 of the module in form
<replaceable>fieldname
</replaceable> :
58 <replaceable>value
</replaceable>, for easy reading. The
59 filename is listed the same way (although it's not really an
63 <para>This version of
<command>modinfo
</command> can understand
64 modules of any Linux Kernel architecture.
</para>
67 <title>OPTIONS
</title>
70 <term><option>-V
</option> <option>--version
</option>
74 Print the modinfo version. Note BACKWARDS COMPATIBILITY
75 below: you might be printing the version of
76 <command>modinfo.old
</command>.
81 <term><option>-F
</option> <option>--field
</option>
85 Only print this field value, one per line. This is most
86 useful for scripts. Field names are case-insenitive.
87 Common fields (which may not be in every module) include
88 <literal>author
</literal>,
<literal>description
</literal>,
89 <literal>license
</literal>,
<literal>param
</literal>,
90 <literal>depends
</literal>, and
<literal>alias
</literal>.
91 There are often multiple
<literal>param
</literal>,
92 <literal>alias
</literal> and
<literal>depends
</literal>
93 fields. The special field
<literal>filename
</literal>
94 lists the filename of the module.
99 <term><option>-k
<replaceable>kernel
</replaceable></option>
102 Provide information about a kernel other than the running one. This
103 is particularly useful for distributions needing to extract
104 information from a newly installed (but not yet running) set of
105 kernel modules. For example, you wish to find which firmware files
106 are needed by various modules in a new kernel for which you must
107 make an initrd image prior to booting.
112 <term><option>-
0</option> <option>--null
</option>
116 Use the ASCII zero character to separate field values,
117 instead of a new line. This is useful for scripts, since
118 a new line can theoretically appear inside a field.
123 <term><option>-a
</option> <option>-d
</option> <option>-l
</option> <option>-p
</option> <option>-n
</option>
127 These are shortcuts for
<literal>author
</literal>,
128 <literal>description
</literal>,
129 <literal>license
</literal>.
<literal>param
</literal> and
130 <literal>filename
</literal> respectively, to ease the
131 transition from the old modutils
132 <command>modinfo
</command>.
139 <title>BACKWARDS COMPATIBILITY
</title>
141 <para>This version of
<command>modinfo
</command> is for kernel
142 modules
<literal>2.5.48</literal> and above. If it detects a
143 kernel with support for old-style modules, it will attempt to
144 run
<command>modprobe.old
</command> in its place, so it is
145 completely transparent to the user.
</para>
147 <para>Note that the output of this version of
148 <command>modinfo
</command> is simpler and more regular than
149 the older version: scripts attempting to use the default
150 output may get confused with complex fields.
153 <para>You can force the new
<command>modinfo
</command> to always
154 be used, by setting the
<literal>NEW_MODINFO
</literal>
155 environment variable.
159 <title>COPYRIGHT
</title>
161 This manual page Copyright
2003, Rusty Russell, IBM Corporation.
165 <title>SEE ALSO
</title>
168 <refentrytitle>modprobe
</refentrytitle><manvolnum>8</manvolnum>
171 <refentrytitle>modinfo.old
</refentrytitle><manvolnum>8</manvolnum>
177 <!-- Keep this comment at the end of the file
182 sgml-minimize-attributes:nil
183 sgml-always-quote-attributes:t
186 sgml-parent-document:nil
187 sgml-default-dtd-file:nil
188 sgml-exposed-tags:nil
189 sgml-local-catalogs:nil
190 sgml-local-ecat-files:nil