1*cc4ad7daSAndroid Build Coastguard Worker<?xml version='1.0'?> 2*cc4ad7daSAndroid Build Coastguard Worker<!--*-nxml-*--> 3*cc4ad7daSAndroid Build Coastguard Worker<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 4*cc4ad7daSAndroid Build Coastguard Worker "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> 5*cc4ad7daSAndroid Build Coastguard Worker<refentry id="modprobe"> 6*cc4ad7daSAndroid Build Coastguard Worker <refentryinfo> 7*cc4ad7daSAndroid Build Coastguard Worker <title>modprobe</title> 8*cc4ad7daSAndroid Build Coastguard Worker <productname>kmod</productname> 9*cc4ad7daSAndroid Build Coastguard Worker 10*cc4ad7daSAndroid Build Coastguard Worker <authorgroup> 11*cc4ad7daSAndroid Build Coastguard Worker <author> 12*cc4ad7daSAndroid Build Coastguard Worker <contrib>Developer</contrib> 13*cc4ad7daSAndroid Build Coastguard Worker <firstname>Jon</firstname> 14*cc4ad7daSAndroid Build Coastguard Worker <surname>Masters</surname> 15*cc4ad7daSAndroid Build Coastguard Worker <email>[email protected]</email> 16*cc4ad7daSAndroid Build Coastguard Worker </author> 17*cc4ad7daSAndroid Build Coastguard Worker <author> 18*cc4ad7daSAndroid Build Coastguard Worker <contrib>Developer</contrib> 19*cc4ad7daSAndroid Build Coastguard Worker <firstname>Robby</firstname> 20*cc4ad7daSAndroid Build Coastguard Worker <surname>Workman</surname> 21*cc4ad7daSAndroid Build Coastguard Worker <email>[email protected]</email> 22*cc4ad7daSAndroid Build Coastguard Worker </author> 23*cc4ad7daSAndroid Build Coastguard Worker <author> 24*cc4ad7daSAndroid Build Coastguard Worker <contrib>Developer</contrib> 25*cc4ad7daSAndroid Build Coastguard Worker <firstname>Lucas</firstname> 26*cc4ad7daSAndroid Build Coastguard Worker <surname>De Marchi</surname> 27*cc4ad7daSAndroid Build Coastguard Worker <email>[email protected]</email> 28*cc4ad7daSAndroid Build Coastguard Worker </author> 29*cc4ad7daSAndroid Build Coastguard Worker </authorgroup> 30*cc4ad7daSAndroid Build Coastguard Worker </refentryinfo> 31*cc4ad7daSAndroid Build Coastguard Worker 32*cc4ad7daSAndroid Build Coastguard Worker <refmeta> 33*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>modprobe</refentrytitle> 34*cc4ad7daSAndroid Build Coastguard Worker <manvolnum>8</manvolnum> 35*cc4ad7daSAndroid Build Coastguard Worker </refmeta> 36*cc4ad7daSAndroid Build Coastguard Worker 37*cc4ad7daSAndroid Build Coastguard Worker <refnamediv> 38*cc4ad7daSAndroid Build Coastguard Worker <refname>modprobe</refname> 39*cc4ad7daSAndroid Build Coastguard Worker <refpurpose>Add and remove modules from the Linux Kernel</refpurpose> 40*cc4ad7daSAndroid Build Coastguard Worker </refnamediv> 41*cc4ad7daSAndroid Build Coastguard Worker 42*cc4ad7daSAndroid Build Coastguard Worker <refsynopsisdiv> 43*cc4ad7daSAndroid Build Coastguard Worker <cmdsynopsis> 44*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> 45*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-v</option></arg> 46*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-V</option></arg> 47*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-C <replaceable>config-file</replaceable></option></arg> 48*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-n</option></arg> 49*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-i</option></arg> 50*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-q</option></arg> 51*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-b</option></arg> 52*cc4ad7daSAndroid Build Coastguard Worker <arg><replaceable>modulename</replaceable></arg> 53*cc4ad7daSAndroid Build Coastguard Worker <arg rep='repeat'><option><replaceable>module parameters</replaceable></option></arg> 54*cc4ad7daSAndroid Build Coastguard Worker </cmdsynopsis> 55*cc4ad7daSAndroid Build Coastguard Worker <cmdsynopsis> 56*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> 57*cc4ad7daSAndroid Build Coastguard Worker <arg>-r</arg> 58*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-v</option></arg> 59*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-n</option></arg> 60*cc4ad7daSAndroid Build Coastguard Worker <arg><option>-i</option></arg> 61*cc4ad7daSAndroid Build Coastguard Worker <arg rep='repeat'><option><replaceable>modulename</replaceable></option></arg> 62*cc4ad7daSAndroid Build Coastguard Worker </cmdsynopsis> 63*cc4ad7daSAndroid Build Coastguard Worker <cmdsynopsis> 64*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> 65*cc4ad7daSAndroid Build Coastguard Worker <arg>-c</arg> 66*cc4ad7daSAndroid Build Coastguard Worker </cmdsynopsis> 67*cc4ad7daSAndroid Build Coastguard Worker <cmdsynopsis> 68*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> 69*cc4ad7daSAndroid Build Coastguard Worker <arg>--dump-modversions</arg> <arg><replaceable>filename</replaceable></arg> 70*cc4ad7daSAndroid Build Coastguard Worker </cmdsynopsis> 71*cc4ad7daSAndroid Build Coastguard Worker </refsynopsisdiv> 72*cc4ad7daSAndroid Build Coastguard Worker <refsect1> 73*cc4ad7daSAndroid Build Coastguard Worker <title>Description</title> 74*cc4ad7daSAndroid Build Coastguard Worker 75*cc4ad7daSAndroid Build Coastguard Worker <para> 76*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> intelligently adds or removes a 77*cc4ad7daSAndroid Build Coastguard Worker module from the Linux kernel: note that for convenience, there 78*cc4ad7daSAndroid Build Coastguard Worker is no difference between _ and - in module names (automatic 79*cc4ad7daSAndroid Build Coastguard Worker underscore conversion is performed). 80*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> looks in the module directory 81*cc4ad7daSAndroid Build Coastguard Worker <filename>@MODULE_DIRECTORY@/`uname -r`</filename> for all 82*cc4ad7daSAndroid Build Coastguard Worker the modules and other files, except for the optional 83*cc4ad7daSAndroid Build Coastguard Worker configuration files in the 84*cc4ad7daSAndroid Build Coastguard Worker <filename>/etc/modprobe.d</filename> directory 85*cc4ad7daSAndroid Build Coastguard Worker (see <citerefentry> 86*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>modprobe.d</refentrytitle><manvolnum>5</manvolnum> 87*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>). <command>modprobe</command> will also use module 88*cc4ad7daSAndroid Build Coastguard Worker options specified on the kernel command line in the form of 89*cc4ad7daSAndroid Build Coastguard Worker <module>.<option> and blacklists in the form of 90*cc4ad7daSAndroid Build Coastguard Worker modprobe.blacklist=<module>. 91*cc4ad7daSAndroid Build Coastguard Worker </para> 92*cc4ad7daSAndroid Build Coastguard Worker <para> 93*cc4ad7daSAndroid Build Coastguard Worker Note that unlike in 2.4 series Linux kernels (which are not supported 94*cc4ad7daSAndroid Build Coastguard Worker by this tool) this version of <command>modprobe</command> does not 95*cc4ad7daSAndroid Build Coastguard Worker do anything to the module itself: the work of resolving symbols 96*cc4ad7daSAndroid Build Coastguard Worker and understanding parameters is done inside the kernel. So 97*cc4ad7daSAndroid Build Coastguard Worker module failure is sometimes accompanied by a kernel message: see 98*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 99*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>dmesg</refentrytitle><manvolnum>8</manvolnum> 100*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>. 101*cc4ad7daSAndroid Build Coastguard Worker </para> 102*cc4ad7daSAndroid Build Coastguard Worker <para> 103*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> expects an up-to-date 104*cc4ad7daSAndroid Build Coastguard Worker <filename>modules.dep.bin</filename> file as generated 105*cc4ad7daSAndroid Build Coastguard Worker by the corresponding <command>depmod</command> utility shipped 106*cc4ad7daSAndroid Build Coastguard Worker along with <command>modprobe</command> (see 107*cc4ad7daSAndroid Build Coastguard Worker <citerefentry><refentrytitle>depmod</refentrytitle><manvolnum>8</manvolnum> 108*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>). This file lists what other modules each 109*cc4ad7daSAndroid Build Coastguard Worker module needs (if any), and <command>modprobe</command> uses this 110*cc4ad7daSAndroid Build Coastguard Worker to add or remove these dependencies automatically. 111*cc4ad7daSAndroid Build Coastguard Worker </para> 112*cc4ad7daSAndroid Build Coastguard Worker <para> 113*cc4ad7daSAndroid Build Coastguard Worker If any arguments are given after the 114*cc4ad7daSAndroid Build Coastguard Worker <replaceable>modulename</replaceable>, they are passed to the 115*cc4ad7daSAndroid Build Coastguard Worker kernel (in addition to any options listed in the configuration 116*cc4ad7daSAndroid Build Coastguard Worker file). 117*cc4ad7daSAndroid Build Coastguard Worker </para> 118*cc4ad7daSAndroid Build Coastguard Worker <para> 119*cc4ad7daSAndroid Build Coastguard Worker When loading modules, <replaceable>modulename</replaceable> can also 120*cc4ad7daSAndroid Build Coastguard Worker be a path to the module. If the path is relative, it must 121*cc4ad7daSAndroid Build Coastguard Worker explicitly start with "./". Note that this may fail when using a 122*cc4ad7daSAndroid Build Coastguard Worker path to a module with dependencies not matching the installed depmod 123*cc4ad7daSAndroid Build Coastguard Worker database. 124*cc4ad7daSAndroid Build Coastguard Worker </para> 125*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 126*cc4ad7daSAndroid Build Coastguard Worker 127*cc4ad7daSAndroid Build Coastguard Worker <refsect1><title>OPTIONS</title> 128*cc4ad7daSAndroid Build Coastguard Worker <variablelist> 129*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 130*cc4ad7daSAndroid Build Coastguard Worker <term> 131*cc4ad7daSAndroid Build Coastguard Worker <option>-a</option> 132*cc4ad7daSAndroid Build Coastguard Worker </term> 133*cc4ad7daSAndroid Build Coastguard Worker <term> 134*cc4ad7daSAndroid Build Coastguard Worker <option>--all</option> 135*cc4ad7daSAndroid Build Coastguard Worker </term> 136*cc4ad7daSAndroid Build Coastguard Worker <listitem> 137*cc4ad7daSAndroid Build Coastguard Worker <para>Insert all module names on the command line.</para> 138*cc4ad7daSAndroid Build Coastguard Worker </listitem> 139*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 140*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 141*cc4ad7daSAndroid Build Coastguard Worker <term> 142*cc4ad7daSAndroid Build Coastguard Worker <option>-b</option> 143*cc4ad7daSAndroid Build Coastguard Worker </term> 144*cc4ad7daSAndroid Build Coastguard Worker <term> 145*cc4ad7daSAndroid Build Coastguard Worker <option>--use-blacklist</option> 146*cc4ad7daSAndroid Build Coastguard Worker </term> 147*cc4ad7daSAndroid Build Coastguard Worker <listitem> 148*cc4ad7daSAndroid Build Coastguard Worker <para> 149*cc4ad7daSAndroid Build Coastguard Worker This option causes <command>modprobe</command> to apply the 150*cc4ad7daSAndroid Build Coastguard Worker <command>blacklist</command> commands in the configuration files 151*cc4ad7daSAndroid Build Coastguard Worker (if any) to module names as well. It is usually used by 152*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 153*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum> 154*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>. 155*cc4ad7daSAndroid Build Coastguard Worker </para> 156*cc4ad7daSAndroid Build Coastguard Worker </listitem> 157*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 158*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 159*cc4ad7daSAndroid Build Coastguard Worker <term> 160*cc4ad7daSAndroid Build Coastguard Worker <option>-C</option> 161*cc4ad7daSAndroid Build Coastguard Worker </term> 162*cc4ad7daSAndroid Build Coastguard Worker <term> 163*cc4ad7daSAndroid Build Coastguard Worker <option>--config</option> 164*cc4ad7daSAndroid Build Coastguard Worker </term> 165*cc4ad7daSAndroid Build Coastguard Worker <listitem> 166*cc4ad7daSAndroid Build Coastguard Worker <para>This option overrides the default configuration directory 167*cc4ad7daSAndroid Build Coastguard Worker (<filename>/etc/modprobe.d</filename>). 168*cc4ad7daSAndroid Build Coastguard Worker </para> 169*cc4ad7daSAndroid Build Coastguard Worker <para> 170*cc4ad7daSAndroid Build Coastguard Worker This option is passed through <command>install</command> 171*cc4ad7daSAndroid Build Coastguard Worker or <command>remove</command> commands to other 172*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> commands in the 173*cc4ad7daSAndroid Build Coastguard Worker MODPROBE_OPTIONS environment variable. 174*cc4ad7daSAndroid Build Coastguard Worker </para> 175*cc4ad7daSAndroid Build Coastguard Worker </listitem> 176*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 177*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 178*cc4ad7daSAndroid Build Coastguard Worker <term> 179*cc4ad7daSAndroid Build Coastguard Worker <option>-c</option> 180*cc4ad7daSAndroid Build Coastguard Worker </term> 181*cc4ad7daSAndroid Build Coastguard Worker <term> 182*cc4ad7daSAndroid Build Coastguard Worker <option>--showconfig</option> 183*cc4ad7daSAndroid Build Coastguard Worker </term> 184*cc4ad7daSAndroid Build Coastguard Worker <listitem> 185*cc4ad7daSAndroid Build Coastguard Worker <para> 186*cc4ad7daSAndroid Build Coastguard Worker Dump out the effective configuration from the config directory and 187*cc4ad7daSAndroid Build Coastguard Worker exit. 188*cc4ad7daSAndroid Build Coastguard Worker </para> 189*cc4ad7daSAndroid Build Coastguard Worker </listitem> 190*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 191*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 192*cc4ad7daSAndroid Build Coastguard Worker <term> 193*cc4ad7daSAndroid Build Coastguard Worker <option>--dump-modversions</option> 194*cc4ad7daSAndroid Build Coastguard Worker </term> 195*cc4ad7daSAndroid Build Coastguard Worker <listitem> 196*cc4ad7daSAndroid Build Coastguard Worker <para> 197*cc4ad7daSAndroid Build Coastguard Worker Print out a list of module versioning information required by a 198*cc4ad7daSAndroid Build Coastguard Worker module. This option is commonly used by distributions in order to 199*cc4ad7daSAndroid Build Coastguard Worker package up a Linux kernel module using module versioning deps. 200*cc4ad7daSAndroid Build Coastguard Worker </para> 201*cc4ad7daSAndroid Build Coastguard Worker </listitem> 202*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 203*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 204*cc4ad7daSAndroid Build Coastguard Worker <term> 205*cc4ad7daSAndroid Build Coastguard Worker <option>-d</option> 206*cc4ad7daSAndroid Build Coastguard Worker </term> 207*cc4ad7daSAndroid Build Coastguard Worker <term> 208*cc4ad7daSAndroid Build Coastguard Worker <option>--dirname</option> 209*cc4ad7daSAndroid Build Coastguard Worker </term> 210*cc4ad7daSAndroid Build Coastguard Worker <listitem> 211*cc4ad7daSAndroid Build Coastguard Worker <para> 212*cc4ad7daSAndroid Build Coastguard Worker Root directory for modules, <filename>/</filename> by default. 213*cc4ad7daSAndroid Build Coastguard Worker </para> 214*cc4ad7daSAndroid Build Coastguard Worker </listitem> 215*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 216*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 217*cc4ad7daSAndroid Build Coastguard Worker <term> 218*cc4ad7daSAndroid Build Coastguard Worker <option>--first-time</option> 219*cc4ad7daSAndroid Build Coastguard Worker </term> 220*cc4ad7daSAndroid Build Coastguard Worker <listitem> 221*cc4ad7daSAndroid Build Coastguard Worker <para> 222*cc4ad7daSAndroid Build Coastguard Worker Normally, <command>modprobe</command> will succeed (and do 223*cc4ad7daSAndroid Build Coastguard Worker nothing) if told to insert a module which is already 224*cc4ad7daSAndroid Build Coastguard Worker present or to remove a module which isn't present. This is 225*cc4ad7daSAndroid Build Coastguard Worker ideal for simple scripts; however, more complicated scripts often 226*cc4ad7daSAndroid Build Coastguard Worker want to know whether <command>modprobe</command> really 227*cc4ad7daSAndroid Build Coastguard Worker did something: this option makes modprobe fail in the 228*cc4ad7daSAndroid Build Coastguard Worker case that it actually didn't do anything. 229*cc4ad7daSAndroid Build Coastguard Worker </para> 230*cc4ad7daSAndroid Build Coastguard Worker </listitem> 231*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 232*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 233*cc4ad7daSAndroid Build Coastguard Worker <term> 234*cc4ad7daSAndroid Build Coastguard Worker <option>--force-vermagic</option> 235*cc4ad7daSAndroid Build Coastguard Worker </term> 236*cc4ad7daSAndroid Build Coastguard Worker <listitem> 237*cc4ad7daSAndroid Build Coastguard Worker <para> 238*cc4ad7daSAndroid Build Coastguard Worker Every module contains a small string containing important 239*cc4ad7daSAndroid Build Coastguard Worker information, such as the kernel and compiler versions. If a module 240*cc4ad7daSAndroid Build Coastguard Worker fails to load and the kernel complains that the "version magic" 241*cc4ad7daSAndroid Build Coastguard Worker doesn't match, you can use this option to remove it. Naturally, 242*cc4ad7daSAndroid Build Coastguard Worker this check is there for your protection, so using this option is 243*cc4ad7daSAndroid Build Coastguard Worker dangerous unless you know what you're doing. 244*cc4ad7daSAndroid Build Coastguard Worker </para> 245*cc4ad7daSAndroid Build Coastguard Worker <para> 246*cc4ad7daSAndroid Build Coastguard Worker This applies to any modules inserted: both the module (or alias) on 247*cc4ad7daSAndroid Build Coastguard Worker the command line and any modules on which it depends. 248*cc4ad7daSAndroid Build Coastguard Worker </para> 249*cc4ad7daSAndroid Build Coastguard Worker </listitem> 250*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 251*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 252*cc4ad7daSAndroid Build Coastguard Worker <term> 253*cc4ad7daSAndroid Build Coastguard Worker <option>--force-modversion</option> 254*cc4ad7daSAndroid Build Coastguard Worker </term> 255*cc4ad7daSAndroid Build Coastguard Worker <listitem> 256*cc4ad7daSAndroid Build Coastguard Worker <para> 257*cc4ad7daSAndroid Build Coastguard Worker When modules are compiled with CONFIG_MODVERSIONS set, a section 258*cc4ad7daSAndroid Build Coastguard Worker detailing the versions of every interfaced used by (or supplied by) 259*cc4ad7daSAndroid Build Coastguard Worker the module is created. If a module fails to load and the kernel 260*cc4ad7daSAndroid Build Coastguard Worker complains that the module disagrees about a version of some 261*cc4ad7daSAndroid Build Coastguard Worker interface, you can use "--force-modversion" to remove the version 262*cc4ad7daSAndroid Build Coastguard Worker information altogether. Naturally, this check is there for your 263*cc4ad7daSAndroid Build Coastguard Worker protection, so using this option is dangerous unless you know what 264*cc4ad7daSAndroid Build Coastguard Worker you're doing. 265*cc4ad7daSAndroid Build Coastguard Worker </para> 266*cc4ad7daSAndroid Build Coastguard Worker <para> 267*cc4ad7daSAndroid Build Coastguard Worker This applies any modules inserted: both the module (or alias) on 268*cc4ad7daSAndroid Build Coastguard Worker the command line and any modules on which it depends. 269*cc4ad7daSAndroid Build Coastguard Worker </para> 270*cc4ad7daSAndroid Build Coastguard Worker </listitem> 271*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 272*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 273*cc4ad7daSAndroid Build Coastguard Worker <term> 274*cc4ad7daSAndroid Build Coastguard Worker <option>-f</option> 275*cc4ad7daSAndroid Build Coastguard Worker </term> 276*cc4ad7daSAndroid Build Coastguard Worker <term> 277*cc4ad7daSAndroid Build Coastguard Worker <option>--force</option> 278*cc4ad7daSAndroid Build Coastguard Worker </term> 279*cc4ad7daSAndroid Build Coastguard Worker <listitem> 280*cc4ad7daSAndroid Build Coastguard Worker <para> 281*cc4ad7daSAndroid Build Coastguard Worker Try to strip any versioning information from the module which might 282*cc4ad7daSAndroid Build Coastguard Worker otherwise stop it from loading: this is the same as using both 283*cc4ad7daSAndroid Build Coastguard Worker <option>--force-vermagic</option> and 284*cc4ad7daSAndroid Build Coastguard Worker <option>--force-modversion</option>. Naturally, these checks are 285*cc4ad7daSAndroid Build Coastguard Worker there for your protection, so using this option is dangerous unless 286*cc4ad7daSAndroid Build Coastguard Worker you know what you are doing. 287*cc4ad7daSAndroid Build Coastguard Worker </para> 288*cc4ad7daSAndroid Build Coastguard Worker <para> 289*cc4ad7daSAndroid Build Coastguard Worker This applies to any modules inserted: both the module (or alias) on 290*cc4ad7daSAndroid Build Coastguard Worker the command line and any modules it on which it depends. 291*cc4ad7daSAndroid Build Coastguard Worker </para> 292*cc4ad7daSAndroid Build Coastguard Worker </listitem> 293*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 294*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 295*cc4ad7daSAndroid Build Coastguard Worker <term> 296*cc4ad7daSAndroid Build Coastguard Worker <option>-i</option> 297*cc4ad7daSAndroid Build Coastguard Worker </term> 298*cc4ad7daSAndroid Build Coastguard Worker <term> 299*cc4ad7daSAndroid Build Coastguard Worker <option>--ignore-install</option> 300*cc4ad7daSAndroid Build Coastguard Worker </term> 301*cc4ad7daSAndroid Build Coastguard Worker <term> 302*cc4ad7daSAndroid Build Coastguard Worker <option>--ignore-remove</option> 303*cc4ad7daSAndroid Build Coastguard Worker </term> 304*cc4ad7daSAndroid Build Coastguard Worker <listitem> 305*cc4ad7daSAndroid Build Coastguard Worker <para> 306*cc4ad7daSAndroid Build Coastguard Worker This option causes <command>modprobe</command> to ignore 307*cc4ad7daSAndroid Build Coastguard Worker <command>install</command> and <command>remove</command> commands 308*cc4ad7daSAndroid Build Coastguard Worker in the configuration file (if any) for the module specified on the 309*cc4ad7daSAndroid Build Coastguard Worker command line (any dependent modules are still subject to commands 310*cc4ad7daSAndroid Build Coastguard Worker set for them in the configuration file). Both 311*cc4ad7daSAndroid Build Coastguard Worker <command>install</command> and <command>remove</command> commands 312*cc4ad7daSAndroid Build Coastguard Worker will currently be ignored when this option is used regardless of 313*cc4ad7daSAndroid Build Coastguard Worker whether the request was more specifically made with only one or 314*cc4ad7daSAndroid Build Coastguard Worker other (and not both) of <option>--ignore-install</option> or 315*cc4ad7daSAndroid Build Coastguard Worker <option>--ignore-remove</option>. See <citerefentry> 316*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>modprobe.d</refentrytitle><manvolnum>5</manvolnum> 317*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>. 318*cc4ad7daSAndroid Build Coastguard Worker </para> 319*cc4ad7daSAndroid Build Coastguard Worker </listitem> 320*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 321*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 322*cc4ad7daSAndroid Build Coastguard Worker <term> 323*cc4ad7daSAndroid Build Coastguard Worker <option>-n</option> 324*cc4ad7daSAndroid Build Coastguard Worker </term> 325*cc4ad7daSAndroid Build Coastguard Worker <term> 326*cc4ad7daSAndroid Build Coastguard Worker <option>--dry-run</option> 327*cc4ad7daSAndroid Build Coastguard Worker </term> 328*cc4ad7daSAndroid Build Coastguard Worker <term> 329*cc4ad7daSAndroid Build Coastguard Worker <option>--show</option> 330*cc4ad7daSAndroid Build Coastguard Worker </term> 331*cc4ad7daSAndroid Build Coastguard Worker <listitem> 332*cc4ad7daSAndroid Build Coastguard Worker <para> 333*cc4ad7daSAndroid Build Coastguard Worker This option does everything but actually insert or delete the 334*cc4ad7daSAndroid Build Coastguard Worker modules (or run the install or remove commands). Combined with 335*cc4ad7daSAndroid Build Coastguard Worker <option>-v</option>, it is useful for debugging problems. For 336*cc4ad7daSAndroid Build Coastguard Worker historical reasons both <option>--dry-run</option> and 337*cc4ad7daSAndroid Build Coastguard Worker <option>--show</option> actually mean the same thing and are 338*cc4ad7daSAndroid Build Coastguard Worker interchangeable. 339*cc4ad7daSAndroid Build Coastguard Worker </para> 340*cc4ad7daSAndroid Build Coastguard Worker </listitem> 341*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 342*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 343*cc4ad7daSAndroid Build Coastguard Worker <term> 344*cc4ad7daSAndroid Build Coastguard Worker <option>-q</option> 345*cc4ad7daSAndroid Build Coastguard Worker </term> 346*cc4ad7daSAndroid Build Coastguard Worker <term> 347*cc4ad7daSAndroid Build Coastguard Worker <option>--quiet</option> 348*cc4ad7daSAndroid Build Coastguard Worker </term> 349*cc4ad7daSAndroid Build Coastguard Worker <listitem> 350*cc4ad7daSAndroid Build Coastguard Worker <para> 351*cc4ad7daSAndroid Build Coastguard Worker With this flag, <command>modprobe</command> won't print an error 352*cc4ad7daSAndroid Build Coastguard Worker message if you try to remove or insert a module it can't find (and 353*cc4ad7daSAndroid Build Coastguard Worker isn't an alias or 354*cc4ad7daSAndroid Build Coastguard Worker <command>install</command>/<command>remove</command> command). 355*cc4ad7daSAndroid Build Coastguard Worker However, it will still return with a non-zero exit status. The 356*cc4ad7daSAndroid Build Coastguard Worker kernel uses this to opportunistically probe for modules which might 357*cc4ad7daSAndroid Build Coastguard Worker exist using request_module. 358*cc4ad7daSAndroid Build Coastguard Worker </para> 359*cc4ad7daSAndroid Build Coastguard Worker </listitem> 360*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 361*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 362*cc4ad7daSAndroid Build Coastguard Worker <term> 363*cc4ad7daSAndroid Build Coastguard Worker <option>-R</option> 364*cc4ad7daSAndroid Build Coastguard Worker </term> 365*cc4ad7daSAndroid Build Coastguard Worker <term> 366*cc4ad7daSAndroid Build Coastguard Worker <option>--resolve-alias</option> 367*cc4ad7daSAndroid Build Coastguard Worker </term> 368*cc4ad7daSAndroid Build Coastguard Worker <listitem> 369*cc4ad7daSAndroid Build Coastguard Worker <para> 370*cc4ad7daSAndroid Build Coastguard Worker Print all module names matching an alias. This can be useful for 371*cc4ad7daSAndroid Build Coastguard Worker debugging module alias problems. 372*cc4ad7daSAndroid Build Coastguard Worker </para> 373*cc4ad7daSAndroid Build Coastguard Worker </listitem> 374*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 375*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 376*cc4ad7daSAndroid Build Coastguard Worker <term> 377*cc4ad7daSAndroid Build Coastguard Worker <option>-r</option> 378*cc4ad7daSAndroid Build Coastguard Worker </term> 379*cc4ad7daSAndroid Build Coastguard Worker <term> 380*cc4ad7daSAndroid Build Coastguard Worker <option>--remove</option> 381*cc4ad7daSAndroid Build Coastguard Worker </term> 382*cc4ad7daSAndroid Build Coastguard Worker <listitem> 383*cc4ad7daSAndroid Build Coastguard Worker <para> 384*cc4ad7daSAndroid Build Coastguard Worker This option causes <command>modprobe</command> to remove rather 385*cc4ad7daSAndroid Build Coastguard Worker than insert a module. If the modules it depends on are also 386*cc4ad7daSAndroid Build Coastguard Worker unused, <command>modprobe</command> will try to remove them too. 387*cc4ad7daSAndroid Build Coastguard Worker Unlike insertion, more than one module can be specified on the 388*cc4ad7daSAndroid Build Coastguard Worker command line (it does not make sense to specify module parameters 389*cc4ad7daSAndroid Build Coastguard Worker when removing modules). 390*cc4ad7daSAndroid Build Coastguard Worker </para> 391*cc4ad7daSAndroid Build Coastguard Worker <para> 392*cc4ad7daSAndroid Build Coastguard Worker There is usually no reason to remove modules, but some buggy 393*cc4ad7daSAndroid Build Coastguard Worker modules require it. Your distribution kernel may not have been 394*cc4ad7daSAndroid Build Coastguard Worker built to support removal of modules at all. 395*cc4ad7daSAndroid Build Coastguard Worker </para> 396*cc4ad7daSAndroid Build Coastguard Worker </listitem> 397*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 398*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 399*cc4ad7daSAndroid Build Coastguard Worker <term> 400*cc4ad7daSAndroid Build Coastguard Worker <option>-w</option> 401*cc4ad7daSAndroid Build Coastguard Worker </term> 402*cc4ad7daSAndroid Build Coastguard Worker <term> 403*cc4ad7daSAndroid Build Coastguard Worker <option>--wait=</option>TIMEOUT_MSEC 404*cc4ad7daSAndroid Build Coastguard Worker </term> 405*cc4ad7daSAndroid Build Coastguard Worker <listitem> 406*cc4ad7daSAndroid Build Coastguard Worker <para> 407*cc4ad7daSAndroid Build Coastguard Worker This option causes <command>modprobe -r</command> to continue trying to 408*cc4ad7daSAndroid Build Coastguard Worker remove a module if it fails due to the module being busy, i.e. its refcount 409*cc4ad7daSAndroid Build Coastguard Worker is not 0 at the time the call is made. Modprobe tries to remove the module 410*cc4ad7daSAndroid Build Coastguard Worker with an incremental sleep time between each tentative up until the maximum 411*cc4ad7daSAndroid Build Coastguard Worker wait time in milliseconds passed in this option. 412*cc4ad7daSAndroid Build Coastguard Worker </para> 413*cc4ad7daSAndroid Build Coastguard Worker </listitem> 414*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 415*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 416*cc4ad7daSAndroid Build Coastguard Worker <term> 417*cc4ad7daSAndroid Build Coastguard Worker <option>-S</option> 418*cc4ad7daSAndroid Build Coastguard Worker </term> 419*cc4ad7daSAndroid Build Coastguard Worker <term> 420*cc4ad7daSAndroid Build Coastguard Worker <option>--set-version</option> 421*cc4ad7daSAndroid Build Coastguard Worker </term> 422*cc4ad7daSAndroid Build Coastguard Worker <listitem> 423*cc4ad7daSAndroid Build Coastguard Worker <para> 424*cc4ad7daSAndroid Build Coastguard Worker Set the kernel version, rather than using 425*cc4ad7daSAndroid Build Coastguard Worker <citerefentry><refentrytitle>uname</refentrytitle><manvolnum>2</manvolnum></citerefentry> 426*cc4ad7daSAndroid Build Coastguard Worker to decide on the kernel version (which dictates where to find the 427*cc4ad7daSAndroid Build Coastguard Worker modules). 428*cc4ad7daSAndroid Build Coastguard Worker </para> 429*cc4ad7daSAndroid Build Coastguard Worker </listitem> 430*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 431*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 432*cc4ad7daSAndroid Build Coastguard Worker <term> 433*cc4ad7daSAndroid Build Coastguard Worker <option>--show-depends</option> 434*cc4ad7daSAndroid Build Coastguard Worker </term> 435*cc4ad7daSAndroid Build Coastguard Worker <listitem> 436*cc4ad7daSAndroid Build Coastguard Worker <para> 437*cc4ad7daSAndroid Build Coastguard Worker List the dependencies of a module (or alias), including the module 438*cc4ad7daSAndroid Build Coastguard Worker itself. This produces a (possibly empty) set of module filenames, 439*cc4ad7daSAndroid Build Coastguard Worker one per line, each starting with "insmod" and is typically used by 440*cc4ad7daSAndroid Build Coastguard Worker distributions to determine which modules to include when generating 441*cc4ad7daSAndroid Build Coastguard Worker initrd/initramfs images. <command>Install</command> commands which 442*cc4ad7daSAndroid Build Coastguard Worker apply are shown prefixed by "install". It does not run any of the 443*cc4ad7daSAndroid Build Coastguard Worker install commands. Note that 444*cc4ad7daSAndroid Build Coastguard Worker <citerefentry><refentrytitle>modinfo</refentrytitle><manvolnum>8</manvolnum></citerefentry> 445*cc4ad7daSAndroid Build Coastguard Worker can be used to extract dependencies of a module from the module 446*cc4ad7daSAndroid Build Coastguard Worker itself, but knows nothing of aliases or install commands. 447*cc4ad7daSAndroid Build Coastguard Worker </para> 448*cc4ad7daSAndroid Build Coastguard Worker </listitem> 449*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 450*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 451*cc4ad7daSAndroid Build Coastguard Worker <term> 452*cc4ad7daSAndroid Build Coastguard Worker <option>-s</option> 453*cc4ad7daSAndroid Build Coastguard Worker </term> 454*cc4ad7daSAndroid Build Coastguard Worker <term> 455*cc4ad7daSAndroid Build Coastguard Worker <option>--syslog</option> 456*cc4ad7daSAndroid Build Coastguard Worker </term> 457*cc4ad7daSAndroid Build Coastguard Worker <listitem> 458*cc4ad7daSAndroid Build Coastguard Worker <para> 459*cc4ad7daSAndroid Build Coastguard Worker This option causes any error messages to go through the syslog 460*cc4ad7daSAndroid Build Coastguard Worker mechanism (as LOG_DAEMON with level LOG_NOTICE) rather than to 461*cc4ad7daSAndroid Build Coastguard Worker standard error. This is also automatically enabled when stderr is 462*cc4ad7daSAndroid Build Coastguard Worker unavailable. 463*cc4ad7daSAndroid Build Coastguard Worker </para> 464*cc4ad7daSAndroid Build Coastguard Worker <para> 465*cc4ad7daSAndroid Build Coastguard Worker This option is passed through <command>install</command> or 466*cc4ad7daSAndroid Build Coastguard Worker <command>remove</command> commands to other 467*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> commands in the MODPROBE_OPTIONS 468*cc4ad7daSAndroid Build Coastguard Worker environment variable. 469*cc4ad7daSAndroid Build Coastguard Worker </para> 470*cc4ad7daSAndroid Build Coastguard Worker </listitem> 471*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 472*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 473*cc4ad7daSAndroid Build Coastguard Worker <term> 474*cc4ad7daSAndroid Build Coastguard Worker <option>-V</option> 475*cc4ad7daSAndroid Build Coastguard Worker </term> 476*cc4ad7daSAndroid Build Coastguard Worker <term> 477*cc4ad7daSAndroid Build Coastguard Worker <option>--version</option> 478*cc4ad7daSAndroid Build Coastguard Worker </term> 479*cc4ad7daSAndroid Build Coastguard Worker <listitem> 480*cc4ad7daSAndroid Build Coastguard Worker <para>Show version of program and exit.</para> 481*cc4ad7daSAndroid Build Coastguard Worker </listitem> 482*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 483*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 484*cc4ad7daSAndroid Build Coastguard Worker <term> 485*cc4ad7daSAndroid Build Coastguard Worker <option>-v</option> 486*cc4ad7daSAndroid Build Coastguard Worker </term> 487*cc4ad7daSAndroid Build Coastguard Worker <term> 488*cc4ad7daSAndroid Build Coastguard Worker <option>--verbose</option> 489*cc4ad7daSAndroid Build Coastguard Worker </term> 490*cc4ad7daSAndroid Build Coastguard Worker <listitem> 491*cc4ad7daSAndroid Build Coastguard Worker <para> 492*cc4ad7daSAndroid Build Coastguard Worker Print messages about what the program is doing. Usually 493*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> only prints messages if something goes 494*cc4ad7daSAndroid Build Coastguard Worker wrong. 495*cc4ad7daSAndroid Build Coastguard Worker </para> 496*cc4ad7daSAndroid Build Coastguard Worker <para> 497*cc4ad7daSAndroid Build Coastguard Worker This option is passed through <command>install</command> or 498*cc4ad7daSAndroid Build Coastguard Worker <command>remove</command> commands to other 499*cc4ad7daSAndroid Build Coastguard Worker <command>modprobe</command> commands in the MODPROBE_OPTIONS 500*cc4ad7daSAndroid Build Coastguard Worker environment variable. 501*cc4ad7daSAndroid Build Coastguard Worker </para> 502*cc4ad7daSAndroid Build Coastguard Worker </listitem> 503*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 504*cc4ad7daSAndroid Build Coastguard Worker </variablelist> 505*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 506*cc4ad7daSAndroid Build Coastguard Worker 507*cc4ad7daSAndroid Build Coastguard Worker <refsect1><title>ENVIRONMENT</title> 508*cc4ad7daSAndroid Build Coastguard Worker <para> 509*cc4ad7daSAndroid Build Coastguard Worker The MODPROBE_OPTIONS environment variable can also be used to pass 510*cc4ad7daSAndroid Build Coastguard Worker arguments to <command>modprobe</command>. 511*cc4ad7daSAndroid Build Coastguard Worker </para> 512*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 513*cc4ad7daSAndroid Build Coastguard Worker 514*cc4ad7daSAndroid Build Coastguard Worker <refsect1><title>COPYRIGHT</title> 515*cc4ad7daSAndroid Build Coastguard Worker <para> 516*cc4ad7daSAndroid Build Coastguard Worker This manual page originally Copyright 2002, Rusty Russell, IBM 517*cc4ad7daSAndroid Build Coastguard Worker Corporation. Maintained by Jon Masters and others. 518*cc4ad7daSAndroid Build Coastguard Worker </para> 519*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 520*cc4ad7daSAndroid Build Coastguard Worker 521*cc4ad7daSAndroid Build Coastguard Worker <refsect1> 522*cc4ad7daSAndroid Build Coastguard Worker <title>SEE ALSO</title> 523*cc4ad7daSAndroid Build Coastguard Worker <para> 524*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 525*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>modprobe.d</refentrytitle><manvolnum>5</manvolnum> 526*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>, 527*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 528*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>insmod</refentrytitle><manvolnum>8</manvolnum> 529*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>, 530*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 531*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>rmmod</refentrytitle><manvolnum>8</manvolnum> 532*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>, 533*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 534*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>lsmod</refentrytitle><manvolnum>8</manvolnum> 535*cc4ad7daSAndroid Build Coastguard Worker </citerefentry>, 536*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 537*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>modinfo</refentrytitle><manvolnum>8</manvolnum> 538*cc4ad7daSAndroid Build Coastguard Worker </citerefentry> 539*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 540*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>depmod</refentrytitle><manvolnum>8</manvolnum> 541*cc4ad7daSAndroid Build Coastguard Worker </citerefentry> 542*cc4ad7daSAndroid Build Coastguard Worker </para> 543*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 544*cc4ad7daSAndroid Build Coastguard Worker</refentry> 545