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" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> 4*cc4ad7daSAndroid Build Coastguard Worker<refentry id="depmod.d"> 5*cc4ad7daSAndroid Build Coastguard Worker <refentryinfo> 6*cc4ad7daSAndroid Build Coastguard Worker <title>depmod.d</title> 7*cc4ad7daSAndroid Build Coastguard Worker <productname>kmod</productname> 8*cc4ad7daSAndroid Build Coastguard Worker 9*cc4ad7daSAndroid Build Coastguard Worker <authorgroup> 10*cc4ad7daSAndroid Build Coastguard Worker <author> 11*cc4ad7daSAndroid Build Coastguard Worker <contrib>Developer</contrib> 12*cc4ad7daSAndroid Build Coastguard Worker <firstname>Jon</firstname> 13*cc4ad7daSAndroid Build Coastguard Worker <surname>Masters</surname> 14*cc4ad7daSAndroid Build Coastguard Worker <email>[email protected]</email> 15*cc4ad7daSAndroid Build Coastguard Worker </author> 16*cc4ad7daSAndroid Build Coastguard Worker <author> 17*cc4ad7daSAndroid Build Coastguard Worker <contrib>Developer</contrib> 18*cc4ad7daSAndroid Build Coastguard Worker <firstname>Robby</firstname> 19*cc4ad7daSAndroid Build Coastguard Worker <surname>Workman</surname> 20*cc4ad7daSAndroid Build Coastguard Worker <email>[email protected]</email> 21*cc4ad7daSAndroid Build Coastguard Worker </author> 22*cc4ad7daSAndroid Build Coastguard Worker <author> 23*cc4ad7daSAndroid Build Coastguard Worker <contrib>Developer</contrib> 24*cc4ad7daSAndroid Build Coastguard Worker <firstname>Lucas</firstname> 25*cc4ad7daSAndroid Build Coastguard Worker <surname>De Marchi</surname> 26*cc4ad7daSAndroid Build Coastguard Worker <email>[email protected]</email> 27*cc4ad7daSAndroid Build Coastguard Worker </author> 28*cc4ad7daSAndroid Build Coastguard Worker </authorgroup> 29*cc4ad7daSAndroid Build Coastguard Worker </refentryinfo> 30*cc4ad7daSAndroid Build Coastguard Worker 31*cc4ad7daSAndroid Build Coastguard Worker <refmeta> 32*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>depmod.d</refentrytitle> 33*cc4ad7daSAndroid Build Coastguard Worker <manvolnum>5</manvolnum> 34*cc4ad7daSAndroid Build Coastguard Worker </refmeta> 35*cc4ad7daSAndroid Build Coastguard Worker 36*cc4ad7daSAndroid Build Coastguard Worker <refnamediv> 37*cc4ad7daSAndroid Build Coastguard Worker <refname>depmod.d</refname> 38*cc4ad7daSAndroid Build Coastguard Worker <refpurpose>Configuration directory for depmod</refpurpose> 39*cc4ad7daSAndroid Build Coastguard Worker </refnamediv> 40*cc4ad7daSAndroid Build Coastguard Worker 41*cc4ad7daSAndroid Build Coastguard Worker <refsynopsisdiv> 42*cc4ad7daSAndroid Build Coastguard Worker <para><filename>/lib/depmod.d/*.conf</filename></para> 43*cc4ad7daSAndroid Build Coastguard Worker <para><filename>@DISTCONFDIR@/depmod.d/*.conf</filename></para> 44*cc4ad7daSAndroid Build Coastguard Worker <para><filename>/usr/local/lib/depmod.d/*.conf</filename></para> 45*cc4ad7daSAndroid Build Coastguard Worker <para><filename>/run/depmod.d/*.conf</filename></para> 46*cc4ad7daSAndroid Build Coastguard Worker <para><filename>/etc/depmod.d/*.conf</filename></para> 47*cc4ad7daSAndroid Build Coastguard Worker </refsynopsisdiv> 48*cc4ad7daSAndroid Build Coastguard Worker 49*cc4ad7daSAndroid Build Coastguard Worker <refsect1><title>DESCRIPTION</title> 50*cc4ad7daSAndroid Build Coastguard Worker <para>The order in which modules are processed by the 51*cc4ad7daSAndroid Build Coastguard Worker <command>depmod</command> command can be altered on a global or 52*cc4ad7daSAndroid Build Coastguard Worker per-module basis. This is typically useful in cases where built-in 53*cc4ad7daSAndroid Build Coastguard Worker kernel modules are complemented by custom built versions of the 54*cc4ad7daSAndroid Build Coastguard Worker same and the user wishes to affect the priority of processing in 55*cc4ad7daSAndroid Build Coastguard Worker order to override the module version supplied by the kernel. 56*cc4ad7daSAndroid Build Coastguard Worker </para> 57*cc4ad7daSAndroid Build Coastguard Worker <para> 58*cc4ad7daSAndroid Build Coastguard Worker The format of files under <filename>depmod.d</filename> is simple: one 59*cc4ad7daSAndroid Build Coastguard Worker command per line, with blank lines and lines starting with '#' 60*cc4ad7daSAndroid Build Coastguard Worker ignored (useful for adding comments). A '\' at the end of a line 61*cc4ad7daSAndroid Build Coastguard Worker causes it to continue on the next line, which makes the files a 62*cc4ad7daSAndroid Build Coastguard Worker bit neater. 63*cc4ad7daSAndroid Build Coastguard Worker </para> 64*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 65*cc4ad7daSAndroid Build Coastguard Worker <refsect1> 66*cc4ad7daSAndroid Build Coastguard Worker <title>COMMANDS</title> 67*cc4ad7daSAndroid Build Coastguard Worker <variablelist> 68*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 69*cc4ad7daSAndroid Build Coastguard Worker <term>search <replaceable>subdirectory...</replaceable> 70*cc4ad7daSAndroid Build Coastguard Worker </term> 71*cc4ad7daSAndroid Build Coastguard Worker <listitem> 72*cc4ad7daSAndroid Build Coastguard Worker <para> 73*cc4ad7daSAndroid Build Coastguard Worker This allows you to specify the order in which @MODULE_DIRECTORY@ 74*cc4ad7daSAndroid Build Coastguard Worker (or other configured module location) subdirectories will 75*cc4ad7daSAndroid Build Coastguard Worker be processed by <command>depmod</command>. Directories are 76*cc4ad7daSAndroid Build Coastguard Worker listed in order, with the highest priority given to the 77*cc4ad7daSAndroid Build Coastguard Worker first listed directory and the lowest priority given to the last 78*cc4ad7daSAndroid Build Coastguard Worker directory listed. The special keyword <command>built-in</command> 79*cc4ad7daSAndroid Build Coastguard Worker refers to the standard module directories installed by the kernel. 80*cc4ad7daSAndroid Build Coastguard Worker Another special keyword <command>external</command> refers to the 81*cc4ad7daSAndroid Build Coastguard Worker list of external directories, defined by the 82*cc4ad7daSAndroid Build Coastguard Worker <command>external</command> command. 83*cc4ad7daSAndroid Build Coastguard Worker </para> 84*cc4ad7daSAndroid Build Coastguard Worker <para> 85*cc4ad7daSAndroid Build Coastguard Worker By default, depmod will give a higher priority to 86*cc4ad7daSAndroid Build Coastguard Worker a directory with the name <command>updates</command> 87*cc4ad7daSAndroid Build Coastguard Worker using this built-in search string: "updates built-in" 88*cc4ad7daSAndroid Build Coastguard Worker but more complex arrangements are possible and are 89*cc4ad7daSAndroid Build Coastguard Worker used in several popular distributions. 90*cc4ad7daSAndroid Build Coastguard Worker </para> 91*cc4ad7daSAndroid Build Coastguard Worker </listitem> 92*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 93*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 94*cc4ad7daSAndroid Build Coastguard Worker <term>override <replaceable>modulename</replaceable> <replaceable>kernelversion</replaceable> <replaceable>modulesubdirectory</replaceable> 95*cc4ad7daSAndroid Build Coastguard Worker </term> 96*cc4ad7daSAndroid Build Coastguard Worker <listitem> 97*cc4ad7daSAndroid Build Coastguard Worker <para> 98*cc4ad7daSAndroid Build Coastguard Worker This command allows you to override which version of a 99*cc4ad7daSAndroid Build Coastguard Worker specific module will be used when more than one module 100*cc4ad7daSAndroid Build Coastguard Worker sharing the same name is processed by the 101*cc4ad7daSAndroid Build Coastguard Worker <command>depmod</command> command. It is possible to 102*cc4ad7daSAndroid Build Coastguard Worker specify one kernel or all kernels using the * wildcard. 103*cc4ad7daSAndroid Build Coastguard Worker <replaceable>modulesubdirectory</replaceable> is the 104*cc4ad7daSAndroid Build Coastguard Worker name of the subdirectory under @MODULE_DIRECTORY@ (or other 105*cc4ad7daSAndroid Build Coastguard Worker module location) where the target module is installed. 106*cc4ad7daSAndroid Build Coastguard Worker </para> 107*cc4ad7daSAndroid Build Coastguard Worker <para> 108*cc4ad7daSAndroid Build Coastguard Worker For example, it is possible to override the priority of 109*cc4ad7daSAndroid Build Coastguard Worker an updated test module called <command>kmod</command> by 110*cc4ad7daSAndroid Build Coastguard Worker specifying the following command: "override kmod * extra". 111*cc4ad7daSAndroid Build Coastguard Worker This will ensure that any matching module name installed 112*cc4ad7daSAndroid Build Coastguard Worker under the <command>extra</command> subdirectory within 113*cc4ad7daSAndroid Build Coastguard Worker @MODULE_DIRECTORY@ (or other module location) will take priority 114*cc4ad7daSAndroid Build Coastguard Worker over any likenamed module already provided by the kernel. 115*cc4ad7daSAndroid Build Coastguard Worker </para> 116*cc4ad7daSAndroid Build Coastguard Worker </listitem> 117*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 118*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 119*cc4ad7daSAndroid Build Coastguard Worker <term>external <replaceable>kernelversion</replaceable> 120*cc4ad7daSAndroid Build Coastguard Worker <replaceable>absolutemodulesdirectory...</replaceable> 121*cc4ad7daSAndroid Build Coastguard Worker </term> 122*cc4ad7daSAndroid Build Coastguard Worker <listitem> 123*cc4ad7daSAndroid Build Coastguard Worker <para> 124*cc4ad7daSAndroid Build Coastguard Worker This specifies a list of directories, which will be checked 125*cc4ad7daSAndroid Build Coastguard Worker according to the priorities in the <command>search</command> 126*cc4ad7daSAndroid Build Coastguard Worker command. The order matters also, the first directory has the higher 127*cc4ad7daSAndroid Build Coastguard Worker priority. 128*cc4ad7daSAndroid Build Coastguard Worker </para> 129*cc4ad7daSAndroid Build Coastguard Worker <para> 130*cc4ad7daSAndroid Build Coastguard Worker The <replaceable>kernelversion</replaceable> is a POSIX regular 131*cc4ad7daSAndroid Build Coastguard Worker expression or * wildcard, like in the <command>override</command>. 132*cc4ad7daSAndroid Build Coastguard Worker </para> 133*cc4ad7daSAndroid Build Coastguard Worker </listitem> 134*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 135*cc4ad7daSAndroid Build Coastguard Worker <varlistentry> 136*cc4ad7daSAndroid Build Coastguard Worker <term>exclude <replaceable>excludedir</replaceable> 137*cc4ad7daSAndroid Build Coastguard Worker </term> 138*cc4ad7daSAndroid Build Coastguard Worker <listitem> 139*cc4ad7daSAndroid Build Coastguard Worker <para> 140*cc4ad7daSAndroid Build Coastguard Worker This specifies the trailing directories that will be excluded 141*cc4ad7daSAndroid Build Coastguard Worker during the search for kernel modules. 142*cc4ad7daSAndroid Build Coastguard Worker </para> 143*cc4ad7daSAndroid Build Coastguard Worker <para> 144*cc4ad7daSAndroid Build Coastguard Worker The <replaceable>excludedir</replaceable> is the trailing directory 145*cc4ad7daSAndroid Build Coastguard Worker to exclude 146*cc4ad7daSAndroid Build Coastguard Worker </para> 147*cc4ad7daSAndroid Build Coastguard Worker </listitem> 148*cc4ad7daSAndroid Build Coastguard Worker </varlistentry> 149*cc4ad7daSAndroid Build Coastguard Worker </variablelist> 150*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 151*cc4ad7daSAndroid Build Coastguard Worker 152*cc4ad7daSAndroid Build Coastguard Worker <refsect1><title>COPYRIGHT</title> 153*cc4ad7daSAndroid Build Coastguard Worker <para> 154*cc4ad7daSAndroid Build Coastguard Worker This manual page Copyright 2006-2010, Jon Masters, Red Hat, Inc. 155*cc4ad7daSAndroid Build Coastguard Worker </para> 156*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 157*cc4ad7daSAndroid Build Coastguard Worker <refsect1><title>SEE ALSO</title> 158*cc4ad7daSAndroid Build Coastguard Worker <para> 159*cc4ad7daSAndroid Build Coastguard Worker <citerefentry> 160*cc4ad7daSAndroid Build Coastguard Worker <refentrytitle>depmod</refentrytitle><manvolnum>8</manvolnum> 161*cc4ad7daSAndroid Build Coastguard Worker </citerefentry> 162*cc4ad7daSAndroid Build Coastguard Worker </para> 163*cc4ad7daSAndroid Build Coastguard Worker </refsect1> 164*cc4ad7daSAndroid Build Coastguard Worker</refentry> 165