OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / modutils / draft / man8 / depmod.8
1 .\" Copyright (c) 1994, 1995 Jacques Gelinas (jacques@solucorp.qc.ca)
2 .\" Copyright (c) 1995, 1999 Bjorn Ekwall (bj0rn@blox.se)
3 .\" This program is distributed according to the Gnu General Public License.
4 .\" See the file COPYING in the base distribution directory
5 .\"
6 .\" Translated Sun Aug 15 10:53:46 JST 1999
7 .\"         by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
8 .\" Updated Thu 12 Oct 2000 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
9 .\" Updated Sat 5 Jan 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
10 .\" Updated Fri 24 Apr 2002 by Kentaro Shirakata <argrath@ub32.org>
11 .\" Updated Sun 23 Feb 2003 by Kentaro Shirakata <argrath@ub32.org>
12 .\"
13 .TH DEPMOD 8 "January 26, 2002" Linux "Linux Module Support"
14 .\"O .SH NAME
15 .\"O depmod \- handle dependency descriptions for loadable kernel modules
16 .SH Ì¾Á°
17 depmod \- ¥í¡¼¥À¥Ö¥ë¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤Î°Í¸´Ø·¸¤Îµ­½Ò¤ò°·¤¦
18 .\"O .SH SYNOPSIS
19 .SH ½ñ¼°
20 .B depmod
21 [\-aA] [\-ehnqrsuvV]
22 .RI [\-C\  configfile "] [\-F\ " kernelsyms "] [\-b " basedirectory ]
23 .RI [ forced_version ]
24 .br
25 .B depmod \fR[\-enqrsuv] [\-F \fIkernelsyms\fR] module1.o module2.o ...
26 .\"O .SH DESCRIPTION
27 .SH ÀâÌÀ
28 .\"O The
29 .\"O .B depmod
30 .\"O and
31 .\"O .B modprobe
32 .\"O utilities are intended
33 .\"O to make a Linux modular kernel manageable for all users,
34 .\"O administrators and distribution maintainers.
35 .B depmod
36 ¤ª¤è¤Ó
37 .B modprobe
38 ¤Ï¡¢ Linux ¤Î¥â¥¸¥å¡¼¥ë²½¥«¡¼¥Í¥ë¤ò´ÉÍý¤¹¤ë¤¿¤á¤Î¡¢
39 ¥æ¡¼¥¶¡¼¡¦´ÉÍý¼Ô¡¦¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¥á¥ó¥Æ¥Ê¸þ¤±¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ç¤¢¤ë¡£
40 .PP
41 .\"O .B Depmod
42 .\"O creates a "Makefile"-like dependency file, based on the symbols it finds
43 .\"O in the set of modules mentioned on the command line
44 .\"O or from the directories specified in the configuration file.
45 .\"O This dependency file is later used by
46 .\"O .B modprobe
47 .\"O to automatically load the correct module or stack of modules.
48 .B depmod
49 ¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤¿¥â¥¸¥å¡¼¥ë
50 (¤¢¤ë¤¤¤ÏÀßÄê¥Õ¥¡¥¤¥ë¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¥â¥¸¥å¡¼¥ë)
51 ¤Î¥»¥Ã¥È¤Ë¤¢¤ë¥·¥ó¥Ü¥ë¤Ë´ð¤Å¤­¡¢
52 "Makefile" Åª¤Ê°Í¸´Ø·¸¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¡£
53 .PP
54 .\"O The normal use of
55 .\"O .B depmod
56 .\"O is to include the line
57 .\"O 
58 .\"O .br
59 .\"O .B "/sbin/depmod \-a"
60 .\"O .br
61 .\"O 
62 .\"O somewhere in the rc-files
63 .\"O in
64 .\"O .IR /etc/rc.d ,
65 .\"O so that the correct module dependencies will be available
66 .\"O immediately after booting the system.
67 .B depmod
68 ¤ÎÉáÄ̤λȤ¤Êý¤Ï¡¢
69 .I /etc/rc.d
70 ¤Ë¤¢¤ë rc ¥Õ¥¡¥¤¥ë¤Î¤É¤ì¤«¤Ë
71
72 .br
73 .B "/sbin/depmod -a"
74 .br
75
76 ¤È¤¤¤¦¹Ô¤òÆþ¤ì¤ë¤³¤È¤Ç¤¢¤ë¡£
77 ¤³¤ì¤Ë¤è¤ê¡¢Àµ¤·¤¤¥â¥¸¥å¡¼¥ë¤Î°Í¸´Ø·¸¤ò¥·¥¹¥Æ¥à¤Îµ¯Æ°Ä¾¸å¤Ë»ÈÍѤǤ­¤ë¡£
78 .\"O Note that the option
79 .\"O .B \-a
80 .\"O now is optional.
81 .\"O For boot-up purposes, the option
82 .\"O .B \-q
83 .\"O might be more appropriate since that make depmod silent about
84 .\"O unresolved symbols.
85 ¸½ºß¤Ï
86 .B \-a
87 ¥ª¥×¥·¥ç¥ó¤Ï¾Êά²Äǽ¤Ç¤¢¤ë¡£
88 µ¯Æ°»þ¤Ë¤Ï¡¢
89 .B \-q
90 ¥ª¥×¥·¥ç¥ó¤ÎÊý¤¬¤è¤êŬÀڤǤ¢¤ë¡£
91 ¤³¤Á¤é¤Ï²ò·è¤Ç¤­¤Ê¤«¤Ã¤¿¥·¥ó¥Ü¥ë¤Ë´Ø¤¹¤ë¥ï¡¼¥Ë¥ó¥°¤ò½ÐÎϤ·¤Ê¤¤¡£
92 .PP
93 .\"O It is also possible to create the dependency file immediately
94 .\"O after compiling a new kernel.
95 .\"O If you do "\fBdepmod\ -a\ 2.2.99\fR"
96 .\"O when you have compiled kernel 2.2.99 and
97 .\"O its modules the first time, while still running e.g. 2.2.98, the file will
98 .\"O be created in the correct place.
99 ¿·¤·¤¤¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ëľ¸å¤Ë°Í¸´Ø·¸¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
100 Î㤨¤Ð 2.2.98 ¥«¡¼¥Í¥ë¤Î¤â¤È¤Ç
101 ¥«¡¼¥Í¥ë 2.2.99 ¤È¤½¤Î¥â¥¸¥å¡¼¥ë¤ò½é¤á¤Æ¥³¥ó¥Ñ¥¤¥ë¤·¤¿¤È¤­¡¢
102 "\fBdepmod\ -a\ 2.2.99\fR" ¤È¤¹¤ì¤Ð¡¢Àµ¤·¤¤°ÌÃ֤˥ե¡¥¤¥ë¤¬ºîÀ®¤µ¤ì¤ë¡£
103 .\"O In this case however,
104 .\"O the dependencies on the kernel will not be guaranteed to be correct.
105 .\"O See the options
106 .\"O .BR \-F ,\  \-C\  and\  \-b
107 .\"O above for more information on handling this.
108 ¤·¤«¤·¤³¤Î¾ì¹ç¡¢
109 ¥«¡¼¥Í¥ë¤Ø¤Î°Í¸´Ø·¸¤ÏÀµ¤·¤¤¤È¤ÏÊݾڤµ¤ì¤Ê¤¤¡£
110 ¤³¤Î°·¤¤¤Ë´Ø¤·¤Æ¤Ï¡¢¾åµ­¤Î
111 .BR \-F ", " \-C ", " \-b
112 ³Æ¥ª¥×¥·¥ç¥ó¤ÎÀâÌÀ¤ò»²¾È¤Î¤³¤È¡£
113 .PP
114 .\"O While building the relationship between modules and the symbols
115 .\"O exported by other modules,
116 .\"O .B depmod
117 .\"O does not consider the GPL status of the modules nor of the exported
118 .\"O symbols.  That is, depmod will not flag an error if a module without a
119 .\"O GPL compatible license refers to a GPL only symbol (EXPORT_SYMBOL_GPL
120 .\"O in the kernel).  However insmod will refuse to resolve GPL only symbols
121 .\"O for non-GPL modules so the actual load will fail.
122 ¥â¥¸¥å¡¼¥ë¤È¡¢Â¾¤Î¥â¥¸¥å¡¼¥ë¤«¤é¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤¿¥·¥ó¥Ü¥ë¤È¤Î´Ø·¸¤ò
123 ¹½ÃÛ¤¹¤ëºÝ¤Ë¡¢
124 .B depmod
125 ¤Ï¥â¥¸¥å¡¼¥ë¤ä¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤¿¥·¥ó¥Ü¥ë¤Î GPL ¾õÂÖ¤ò¹Íθ¤·¤Ê¤¤¡£
126 ¤Ä¤Þ¤ê¡¢depmod ¤Ï GPL ¸ß´¹¤Ç¤Ê¤¤¥é¥¤¥»¥ó¥¹¤Î¥â¥¸¥å¡¼¥ë¤¬ GPL ÀìÍÑ¥·¥ó¥Ü¥ë
127 (¥«¡¼¥Í¥ëÃæ¤Î EXPORT_SYMBOL_GPL)¤ò»²¾È¤·¤Æ¤â¥¨¥é¡¼¤ò½Ð¤µ¤Ê¤¤¡£
128 ¤·¤«¤·¡¢insmod ¤Ï Èó GPL ¥â¥¸¥å¡¼¥ë¤ò GPL ÀìÍÑ¥·¥ó¥Ü¥ë¤Ç²ò·è¤¹¤ë¤³¤È¤ò
129 µñÈݤ¹¤ë¤Î¤Ç¡¢¼ÂºÝ¤ÎÆɤ߹þ¤ß¤Ï¼ºÇÔ¤¹¤ë¡£
130 .\"O .SH OPTIONS
131 .SH ¥ª¥×¥·¥ç¥ó
132 .TP
133 .BR \-a ", " \-\-all
134 .\"O Search for modules in all directories specified in the (optional)
135 .\"O configuration file
136 .\"O .I /etc/modules.conf\fR.
137 ÀßÄê¥Õ¥¡¥¤¥ë
138 .I /etc/modules.conf
139 ¤¬¤¢¤ì¤Ð¡¢¤½¤³¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ëÁ´¤Æ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ç¥â¥¸¥å¡¼¥ë¤ò¸¡º÷¤¹¤ë¡£
140 .TP
141 .BR \-A ", " \-\-quick
142 .\"O Compare file timestamps and, if necessary, act like
143 .\"O .BR "depmod \-a" .
144 .\"O This option only updates the dependency file if anything has changed.
145 ¥Õ¥¡¥¤¥ë¤Î¥¿¥¤¥à¥¹¥¿¥ó¥×¤òÈæ³Ó¤·¡¢¤µ¤é¤ËɬÍפʤé¤Ð
146 .B "depmod \-a"
147 ¤ÈƱ¤¸¤è¤¦¤Ë¿¶¤ëÉñ¤¦¡£
148 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢²¿¤«Êѹ¹¤¬¤¢¤Ã¤¿¾ì¹ç¤Ë¤Î¤ß
149 °Í¸´Ø·¸¥Õ¥¡¥¤¥ë¤ò¹¹¿·¤¹¤ë¡£
150 .TP
151 .BR \-e ", " \-\-errsyms
152 .\"O Show all the unresolved symbols for each module.
153 ³Æ¥â¥¸¥å¡¼¥ë¤´¤È¤Ë¡¢²ò·è¤µ¤ì¤Æ¤¤¤Ê¤¤Á´¤Æ¤Î¥·¥ó¥Ü¥ë¤òɽ¼¨¤¹¤ë¡£
154 .TP
155 .BR \-h ", " \-\-help
156 .\"O Display a summary of options and immediately exit.
157 ¥ª¥×¥·¥ç¥ó¤Î°ìÍ÷¤òɽ¼¨¤·¤Æľ¤Á¤Ë½ªÎ»¤¹¤ë¡£
158 .TP
159 .BR \-n ", " \-\-show
160 .\"O Write the dependency file on stdout instead of in the \fI/lib/modules\fR tree.
161 °Í¸´Ø·¸¥Õ¥¡¥¤¥ë¤ò\fI/lib/modules\fR°Ê²¼¤Ç¤Ï¤Ê¤¯É¸½à½ÐÎϤ˽ñ¤­½Ð¤¹¡£
162 .TP
163 .BR \-q ", " \-\-quiet
164 .\"O Tell depmod to keep quiet and not to complain about missing symbols.
165 quiet ¥â¡¼¥É¡£¸«ÉÕ¤«¤é¤Ê¤¤¥·¥ó¥Ü¥ë¤¬¤¢¤Ã¤Æ¤âʸ¶ç¤ò¸À¤ï¤Ê¤¤¡£
166 .TP
167 .BR \-r ", " \-\-root
168 .\"O Some users compile modules under a non-root userid then install the
169 .\"O modules as root.  This process can leave the modules owned by the
170 .\"O non-root userid, even though the modules directory is owned by root.
171 .\"O If the non-root userid is compromised, an intruder can overwrite
172 .\"O existing modules owned by that userid and use this exposure to
173 .\"O bootstrap up to root access.
174 ¥æ¡¼¥¶¤Ë¤è¤Ã¤Æ¤Ï¡¢¥â¥¸¥å¡¼¥ë¤ò root °Ê³°¤Î¥æ¡¼¥¶¡¼ ID ¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¡¢
175 ¤½¤Î¥â¥¸¥å¡¼¥ë¤ò root ¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤¬¤¢¤ë¡£
176 ¤³¤Î¥×¥í¥»¥¹¤Ç¤Ï¡¢¥â¥¸¥å¡¼¥ë¤Î½êÍ­¼Ô¤¬ root °Ê³°¤Î¥æ¡¼¥¶¡¼ ID
177 ¤Î¤Þ¤Þ¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤ë (¥Ç¥£¥ì¥¯¥È¥ê¤Î½êÍ­¼Ô¤¬ root ¤Ç¤¢¤Ã¤Æ¤â)¡£
178 Èó root ¤Î¥æ¡¼¥¶¡¼ ID ¤òµö¤·¤Æ¤·¤Þ¤¦¤È¡¢
179 ¿¯Æþ¼Ô¤¬¤½¤Î¥æ¡¼¥¶¡¼ ID ÊÝÍ­¤Î¥â¥¸¥å¡¼¥ë¤òÃÖ¤­´¹¤¨¤ë¤³¤È¤¬
180 ²Äǽ¤Ë¤Ê¤ë¤«¤â¤·¤ì¤º¡¢
181 ¤³¤ì¤ò¤­¤Ã¤«¤±¤Ë root ¥¢¥¯¥»¥¹¤òÃ¥¼è¤µ¤ì¤Æ¤·¤Þ¤¦¤«¤â¤·¤ì¤Ê¤¤¡£
182 .\"O .TP
183 .\"O .I ""
184 .sp
185 .\"O By default, modutils will reject attempts to use a module that is not
186 .\"O owned by root.  Specifying \fB\-r\fR will suppress the error and allow root to
187 .\"O load modules that are not owned by root.
188 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ modutils ¤Ï root ¤Î½êÍ­¤Ç¤Ê¤¤¥â¥¸¥å¡¼¥ë¤ÎÍøÍѤò
189 µñÈݤ·¤è¤¦¤È¤¹¤ë¡£ \fB\-r\fR ¤ò»ØÄꤹ¤ë¤È¡¢¤³¤Î¥¨¥é¡¼¤òÍÞÀ©¤·¡¢
190 root °Ê³°¤Î½êÍ­¤¹¤ë¥â¥¸¥å¡¼¥ë¤ò root ¤¬¥í¡¼¥É¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë¡£
191 .\"O .TP
192 .\"O .I ""
193 .sp
194 .\"O .B Use of -r is a major security exposure and is not recommended.
195 \-r ¤ÎÍøÍѤÏÂ礭¤Ê¥»¥­¥å¥ê¥Æ¥£¾å¤Î´í¸±¤ò¾·¤¯²ÄǽÀ­¤¬¤¢¤ê¡¢¿ä¾©¤Ç¤­¤Ê¤¤¡£
196 .TP
197 .BR \-s ", " \-\-syslog
198 .\"O Write all error messages via the syslog daemon instead of stderr.
199 Á´¤Æ¤Î¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¡¢É¸½à½ÐÎϤǤϤʤ¯ syslog ¥Ç¡¼¥â¥ó·Ðͳ¤Ç½ñ¤­½Ð¤¹¡£
200 .TP
201 .BR \-u ", " \-\-unresolved-error
202 .\"O \fBdepmod\fR 2.4 does not set a return code when there are any unresolved
203 .\"O symbols.  The next major release of modutils (2.5) will set a return
204 .\"O code for unresolved symbols.  Some distributions want a non-zero return
205 .\"O code in modutils 2.4 but that change might cause problems for users who
206 .\"O expect the old behaviour.  If you want a non-zero return code in depmod
207 .\"O 2.4, specify \fB\-u\fR.  \fBdepmod\fR 2.5 will silently ignore the
208 .\"O \fB\-u\fR flag and will always give a non-zero return code for unresolved
209 .\"O symbols.
210 \fBdepmod\fR 2.4 ¤Ï²ò·è¤Ç¤­¤Ê¤¤¥·¥ó¥Ü¥ë¤¬¤¢¤Ã¤¿¤È¤­¤Ë¤ÏÊÖ¤êÃͤòÀßÄꤷ¤Ê¤¤¡£
211 ¼¡¤Î modutils ¤Î¥á¥¸¥ã¡¼¥ê¥ê¡¼¥¹ (2.5) ¤Ç¤Ï¡¢
212 ²ò·è¤Ç¤­¤Ê¤¤¥·¥ó¥Ü¥ë¤ËÂФ·¤ÆÊÖ¤êÃͤòÀßÄꤹ¤ëͽÄê¤Ç¤¢¤ë¡£
213 modutils 2.4 ¤ËÂФ·¤ÆÈó¥¼¥í¤ÎÊÖ¤êÃͤò´üÂÔ¤·¤Æ¤¤¤ë
214 ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤â¤¢¤ë¤¬¡¢
215 ¤³¤ÎÊѹ¹¤Ï¸Å¤¤Æ°ºî¤ò´üÂÔ¤·¤Æ¤¤¤ë¥æ¡¼¥¶¤ËÂФ·¤ÆÌäÂê¤ò°ú¤­µ¯¤³¤¹¤«¤â¤·¤ì¤Ê¤¤¡£
216 depmod 2.4 ¤ËÈó¥¼¥í¤ÎÊÖ¤êÃͤò´õ˾¤¹¤ë¾ì¹ç¤Ï \fB\-u\fR ¤ò»ØÄꤹ¤ë¤³¤È¡£
217 \fBdepmod\fR 2.5 ¤Ï \fB\-u\fR ¥Õ¥é¥°¤òÌۤäÆ̵»ë¤·¡¢
218 ²ò·è¤Ç¤­¤Ê¤¤¥·¥ó¥Ü¥ë¤¬¤¢¤Ã¤¿¾ì¹ç¤Ë¤Ï¾ï¤ËÈó¥¼¥í¤ÎÊÖ¤êÃͤòÌ᤹¡£
219 .TP
220 .BR \-v ", " \-\-verbose
221 .\"O Show the name of each module as it is being processed.
222 ³Æ¥â¥¸¥å¡¼¥ë¤ò½èÍý¤¹¤ë¤´¤È¤Ë¡¢¤½¤ì¤é¤Î¥â¥¸¥å¡¼¥ë¤Î̾Á°¤òɽ¼¨¤¹¤ë¡£
223 .TP
224 .I \-V
225 .\"O Display the version of \fBdepmod\fR.
226 \fBdepmod\fR ¤Î¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨¤¹¤ë¡£
227 .PP
228 .\"O The following options are useful for people managing distributions:
229 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤ò´ÉÍý¤¹¤ë¿Í¡¹¤ËÊØÍø¤Ç¤¢¤í¤¦¡£
230 .TP
231 \fB\-b \fIbasedirectory\fR, \fB\-\-basedir \fIbasedirectory
232 .\"O If the directory tree
233 .\"O .I /lib/modules
234 .\"O containing the sub-trees of modules is moved somewhere else in order to
235 .\"O handle modules for a different environment, the
236 .\"O .B \-b
237 .\"O option tells depmod where to find the moved image of the
238 .\"O .I /lib/modules
239 .\"O tree.
240 ´Ä¶­¤òÊѹ¹¤¹¤ë¤¿¤á¤Ë¡¢¥â¥¸¥å¡¼¥ë¤Î¥µ¥Ö¥Ä¥ê¡¼¤¬´Þ¤Þ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼
241 .I /lib/modules
242 ¤ò¤É¤³¤«Ê̤ξì½ê¤Ë°Ü¤·¤¿¤¤¾ì¹ç¡¢
243 ¤½¤Î°ÜÆ°¤µ¤ì¤¿
244 .I /lib/modules
245 ¥¤¥á¡¼¥¸¤òõ¤¹¾ì½ê¤ò
246 .B \-b
247 ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ depmod ¤ËÅÁ¤¨¤ë¡£
248 .\"O The file references in the depmod output file that is built,
249 .\"O .IR modules.dep ,
250 .\"O will not contain the
251 .\"O .I basedirectory
252 .\"O path.
253 depmod ¤¬½ÐÎϤ¹¤ë¥Õ¥¡¥¤¥ë
254 .I modules.dep
255 ¤Ë¤ª¤±¤ë¥Õ¥¡¥¤¥ë»²¾È¤Ï¡¢
256 .I basedirectory
257 ¥Ñ¥¹¤ò´Þ¤Þ¤Ê¤¤¡£
258 .\"O This means that when the file tree is moved back from
259 .\"O .I basedirectory/lib/modules
260 .\"O into
261 .\"O .I /lib/modules
262 .\"O in the final distribution, all references will be correct.
263 ¤¹¤Ê¤ï¤Á¡¢ºÇ½ªÅª¤Ê¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ç¥Õ¥¡¥¤¥ë¥Ä¥ê¡¼¤¬
264 .I basedirectory/lib/modules
265 ¤«¤é
266 .I /lib/modules
267 ¤ËÌᤵ¤ì¤Æ¤â¡¢Á´¤Æ¤Î»²¾È¤ÏÀµ¤·¤¯ÍøÍѤǤ­¤ë¡£
268 .TP
269 \fB\-C \fIconfigfile\fR, \fB\-\-config \fIconfigfile
270 .\"O Use the file
271 .\"O .I configfile
272 .\"O instead of
273 .\"O .IR /etc/modules.conf .
274 .I configfile
275 ¤ò
276 .I /etc/modules.conf
277 ¤ÎÂå¤ï¤ê¤ËÍѤ¤¤ë¡£
278 .\"O The environment variable
279 .\"O .B MODULECONF
280 .\"O can also be used to select a different
281 .\"O configuration file from the default
282 .\"O .I /etc/modules.conf
283 .\"O (or
284 .\"O .I /etc/conf.modules
285 .\"O (deprecated)).
286 ´Ä¶­ÊÑ¿ô
287 .B MODULECONF
288 ¤ò»È¤Ã¤Æ¤â¡¢ÀßÄê¥Õ¥¡¥¤¥ë¤ò
289 .I /etc/modules.conf
290 (¤¢¤ë¤¤¤Ï
291 .I /etc/conf.modules
292 (»È¤ï¤Ê¤¤¤Û¤¦¤¬Îɤ¤))
293 °Ê³°¤Ë»ØÄê¤Ç¤­¤ë¡£
294 .TP
295 .\"O When environment variable
296 .\"O .B UNAME_MACHINE
297 .\"O is set, modutils will use its value instead of the machine field from
298 .\"O the uname() syscall.
299 ´Ä¶­ÊÑ¿ô
300 .B UNAME_MACHINE
301 ¤ò¥»¥Ã¥È¤¹¤ë¤È¡¢modutils ¤Ï uname() ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î machine ¥Õ¥£¡¼¥ë¥É¤Î
302 Âå¤ï¤ê¤Ë¤³¤ÎÊÑ¿ô¤ÎÃͤòÍѤ¤¤ë¡£
303 .\"O This is mainly of use when you are compiling 64 bit modules in 32 bit
304 .\"O user space or vice versa, set
305 .\"O .B UNAME_MACHINE
306 .\"O to the type of the modules being built.
307 ¤³¤ì¤Ï¼ç¤Ë 32 ¥Ó¥Ã¥È¥æ¡¼¥¶¡¼¶õ´Ö¤Ç 64 ¥Ó¥Ã¥È¥â¥¸¥å¡¼¥ë¤ò¥³¥ó¥Ñ¥¤¥ë¤¹¤ë
308 (¤Þ¤¿¤Ï¤½¤ÎµÕ)¾ì¹ç¤ËÍѤ¤¤ë¡£
309 .\"O Current modutils does not support full cross build mode for modules, it
310 .\"O is limited to choosing between 32 and 64 bit versions of the host
311 .\"O architecture.
312 ¸½ºß¤Î modutils ¤Ï¥â¥¸¥å¡¼¥ë¤ËÂФ¹¤ë´°Á´¤Ê¥¯¥í¥¹¥Ó¥ë¥É¥â¡¼¥É¤ËÂбþ¤·¤Æ¤ª¤é¤º¡¢
313 ¥Û¥¹¥È¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Î 32 ¥Ó¥Ã¥ÈÈǤȠ64 ¥Ó¥Ã¥ÈÈǤòÁªÂò¤Ç¤­¤ë¤À¤±¤Ç¤¢¤ë¡£
314 .TP
315 \fB\-F kernelsyms\fR,\fB\-\-filesyms \fIkernelsyms
316 .\"O When building dependency files for a different kernel than the currently
317 .\"O running kernel, it is important that
318 .\"O .B depmod
319 .\"O uses the correct set of kernel symbols to resolve the kernel references
320 .\"O in each module.
321 ¸½ºß¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¥«¡¼¥Í¥ë¤È¤Ï
322 Ê̤Υ«¡¼¥Í¥ë¤ËÂФ·¤Æ°Í¸´Ø·¸¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¾ì¹ç¡¢
323 .B depmod
324 ¤ËÀµ¤·¤¤¥«¡¼¥Í¥ë¥·¥ó¥Ü¥ë¤Î¥»¥Ã¥È¤òÍøÍѤµ¤»¡¢
325 ³Æ¥â¥¸¥å¡¼¥ë¤Î¥«¡¼¥Í¥ë»²¾È¤òÀµ¤·¤¯²ò·è¤µ¤»¤ë¤³¤È¤¬½ÅÍפǤ¢¤ë¡£
326 .\"O These symbols can either be a copy of
327 .\"O .I System.map
328 .\"O from the other kernel,
329 .\"O or a copy of the output from
330 .\"O .IR /proc/ksyms .
331 ¤³¤ì¤é¤Î¥·¥ó¥Ü¥ë¤Ë¤Ï¡¢Â¾¤Î¥«¡¼¥Í¥ë¤Î
332 .I System.map
333 ¤Î¥³¥Ô¡¼¤«¡¢¤¢¤ë¤¤¤Ï
334 .I /proc/ksyms
335 ¤Î½ÐÎϤΥ³¥Ô¡¼¤ò»È¤¨¤ë¡£
336 .\"O If your kernel uses versioned symbols, it is best to
337 .\"O use a copy of the
338 .\"O .I /proc/ksyms
339 .\"O output, since that file contains the symbol versions of the kernel
340 .\"O symbols.  However you can use a
341 .\"O .I System.map
342 .\"O even with versioned symbols.
343 ÍøÍѤ·¤Æ¤¤¤ë¥«¡¼¥Í¥ë¤¬¥Ð¡¼¥¸¥ç¥óÉÕ¤­¤Î¥·¥ó¥Ü¥ë¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
344 .I /proc/ksyms
345 ¤Î½ÐÎϤòÍѤ¤¤ë¤Î¤¬¤â¤Ã¤È¤â¤è¤¤¡£¤Ê¤¼¤Ê¤é¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï
346 ¥«¡¼¥Í¥ë¥·¥ó¥Ü¥ë¤Î¥·¥ó¥Ü¥ë¥Ð¡¼¥¸¥ç¥ó¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤«¤é¤Ç¤¢¤ë¡£
347 ¤·¤«¤·¥Ð¡¼¥¸¥ç¥óÉÕ¤­¤Î¥·¥ó¥Ü¥ë¤ËÂФ·¤Æ
348 .I System.map
349 ¤ò»È¤Ã¤Æ¤â¤«¤Þ¤ï¤Ê¤¤¡£
350 .\"O .SH CONFIGURATION
351 .SH ÀßÄê
352 .\"O The behavior of
353 .\"O .B depmod
354 .\"O and
355 .\"O .B modprobe
356 .\"O can be adjusted by the (optional) configuration file
357 .\"O .IR /etc/modules.conf .
358 .B depmod
359 ¤È
360 .B modprobe
361 ¤ÎÆ°ºî¤Ï¡¢ÀßÄê¥Õ¥¡¥¤¥ë
362 .I /etc/modules.conf
363 ¤Ë¤è¤Ã¤ÆÄ´À°¤Ç¤­¤ë (¤³¤Î¥Õ¥¡¥¤¥ë¤Ï̵¤¯¤Æ¤âÎɤ¤)¡£
364 .\"O .br
365 .\"O See
366 .\"O .BR modprobe (8)
367 .\"O and
368 .\"O .BR modules.conf (5)
369 .\"O for a complete description.
370 ¾ÜºÙ¤Ï
371 .BR modprobe (8)
372 ¤ª¤è¤Ó
373 .BR modules.conf (5)
374 ¤ò»²¾È¤Î¤³¤È¡£
375 .\"O .PP
376 .\"O .SH STRATEGY
377 .SH Êý¿Ë
378 .\"O Each time you compile a new kernel, the command "\fBmake modules_install\fR"
379 .\"O will create a new directory, but won't change the default.
380 ¿·¤·¤¤¥«¡¼¥Í¥ë¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¡¢
381 ¥³¥Þ¥ó¥É "\fBmake modules_install\fR" ¤ò¼Â¹Ô¤¹¤ë¤È¡¢
382 ¿·¤·¤¤¥Ç¥£¥ì¥¯¥È¥ê¤¬ºîÀ®¤µ¤ì¤ë¤¬¥Ç¥Õ¥©¥ë¥È¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
383 .\"NAKANO ¤Ê¤ó¤Î default?
384 .PP
385 .\"O When you get a module unrelated to the kernel distribution
386 .\"O you should place it in one of the version-independent directories
387 .\"O under
388 .\"O .IR /lib/modules .
389 ¥«¡¼¥Í¥ëÇÛÉۤ˴ޤޤì¤Ê¤¤¥â¥¸¥å¡¼¥ë¤òÍøÍѤ·¤¿¤¤¾ì¹ç¤Ï¡¢
390 ¤½¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢ 
391 .I /lib/modules
392 °Ê²¼¤Î¡¢
393 ¥«¡¼¥Í¥ë¥Ð¡¼¥¸¥ç¥ó¤Ë´Ø·¸¤·¤Ê¤¤¥Ç¥£¥ì¥¯¥È¥ê¤ËÃÖ¤¯¤Î¤¬Îɤ¤¡£
394 .PP
395 .\"O This is the default strategy, which can be overridden in /etc/modules.conf.
396 ¤³¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÊý¿Ë¤Ç¤¢¤ë¤¬¡¢
397 /etc/modules.conf ¤Ë¤è¤Ã¤ÆÊѹ¹¤Ç¤­¤ë¡£
398 .\"O .SH FILES
399 .SH ¥Õ¥¡¥¤¥ë
400 .nf
401 .\"O .IR /etc/modules.conf\  "(alternatively but deprecated\ " /etc/conf.modules )
402 .IR /etc/modules.conf (¤¢¤ë¤¤¤Ï /etc/conf.modules (Èó¿ä¾©)) ,
403 .IR /lib/modules/*/modules.dep ,
404 .I /lib/modules/*
405 .fi
406 .\"O .SH SEE ALSO
407 .SH ´ØÏ¢¹àÌÜ
408 .BR modules.conf "(5), " modprobe "(8), "  modinfo "(8), "
409 .BR lsmod "(8), " ksyms "(8) "
410 .\"O .SH BUGS
411 .SH ¥Ð¥°
412 .\"O \fBdepmod\fR [ \-V | \-\-version ] should exit immediately.  Instead, it
413 .\"O prints the version information and behaves as if no options were given.
414 \fBdepmod\fR [ \-V | \-\-version ] ¤Ïľ¤Á¤Ë½ªÎ»¤¹¤ë¤Ù¤­¤Ç¤¢¤ë¡£
415 ¤·¤«¤·¤Ê¤¬¤é¡¢¸½ºß¤Ï¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤òɽ¼¨¤·¤¿¸å¡¢
416 ²¿¤â¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¤«¤Î¤è¤¦¤Ë¿¶Éñ¤¦¡£
417 .\"O .SH AUTHOR
418 .SH Ãø¼Ô
419 Jacques Gelinas (jack@solucorp.qc.ca)
420 .br
421 Bjorn Ekwall (bj0rn@blox.se)