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>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 is also done by
53 <citerefentry><refentrytitle>modprobe
</refentrytitle><manvolnum>8</manvolnum></citerefentry> when loading kernel modules.
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.
79 <term><option>-F
</option> <option>--field
</option>
83 Only print this field value, one per line. This is most
84 useful for scripts. Field names are case-insenitive.
85 Common fields (which may not be in every module) include
86 <literal>author
</literal>,
<literal>description
</literal>,
87 <literal>license
</literal>,
<literal>parm
</literal>,
88 <literal>depends
</literal>, and
<literal>alias
</literal>.
89 There are often multiple
<literal>parm
</literal>,
90 <literal>alias
</literal> and
<literal>depends
</literal>
91 fields. The special field
<literal>filename
</literal>
92 lists the filename of the module.
97 <term><option>-k
<replaceable>kernel
</replaceable></option>
101 Provide information about a kernel other than the running one. This
102 is particularly useful for distributions needing to extract
103 information from a newly installed (but not yet running) set of
104 kernel modules. For example, you wish to find which firmware files
105 are needed by various modules in a new kernel for which you must
106 make an initrd/initramfs image prior to booting.
111 <term><option>-
0</option> <option>--null
</option>
115 Use the ASCII zero character to separate field values,
116 instead of a new line. This is useful for scripts, since
117 a new line can theoretically appear inside a field.
122 <term><option>-a
</option> <option>-d
</option> <option>-l
</option> <option>-p
</option> <option>-n
</option>
126 These are shortcuts for
<literal>author
</literal>,
127 <literal>description
</literal>,
128 <literal>license
</literal>.
<literal>parm
</literal> and
129 <literal>filename
</literal> respectively, to ease the
130 transition from the old modutils
131 <command>modinfo
</command>.
138 <title>COPYRIGHT
</title>
140 This manual page originally Copyright
2003, Rusty Russell, IBM
141 Corporation. Maintained by Jon Masters and others.
145 <title>SEE ALSO
</title>
148 <refentrytitle>modprobe
</refentrytitle><manvolnum>8</manvolnum>
154 <!-- Keep this comment at the end of the file
159 sgml-minimize-attributes:nil
160 sgml-always-quote-attributes:t
163 sgml-parent-document:nil
164 sgml-default-dtd-file:nil
165 sgml-exposed-tags:nil
166 sgml-local-catalogs:nil
167 sgml-local-ecat-files:nil