OSDN Git Service

dacea71ac4bad3576f369ec259e7369faf96eadb
[linuxjm/LDP_man-pages.git] / release / man2 / ioctl_list.2
1 .\" Ioctl List 1.3.27 is copyright 1995 by Michael Elizabeth Chastain.
2 .\" Michael Elizabeth Chastain
3 .\" <mec@duracef.shout.net>
4 .\"
5 .\" %%%LICENSE_START(GPLv2_MISC)
6 .\" It is licensed under the Gnu Public License, Version 2.
7 .\" %%%LICENSE_END
8 .\"
9 .\" Ioctl List 1.3.27
10 .\" Sun 17 Sep 1995
11 .\"
12 .\" // Copyright
13 .\"
14 .\"
15 .\"
16 .\" // Change Log
17 .\"
18 .\" 1.3.27      421 ioctls.
19 .\"     Type information for non-pointer args.
20 .\"     SIOCDEVPRIVATE, SIOCPROTOPRIVATE ioctls.
21 .\"     Descriptions of extended arguments.
22 .\"
23 .\" 1.2.9       365 ioctls.
24 .\"     First public version.
25 .\"
26 .\"
27 .\" 2007-12-29 Alain Portal <aportal@univ-montp2.fr> and Michael Kerrisk
28 .\"     <mtk.manpages@gmail.com>:
29 .\"          Various formatting improvements
30 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .\"
36 .\" Japanese Version Copyright (c) 1996 Akira Yoshiyama
37 .\"         all rights reserved.
38 .\" Translated Sun Jun 30 20:46:54 JST 1996
39 .\"         by Akira Yoshiyama <yosshy@jedi.seg.kobe-u.ac.jp>
40 .\" Modified Sat Dec 13 20:25:06 JST 1997
41 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
42 .\" Updated & Modified Wed May 19 05:31:50 JST 2004
43 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
44 .\" Updated 2008-02-12, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.77
45 .\"
46 .TH IOCTL_LIST 2 2007\-12\-29 Linux "Linux Programmer's Manual"
47 .SH 名前
48 ioctl_list \- Linux/i386 カーネルの ioctl のリスト
49 .SH 説明
50 この文章は ioctl リスト 1.3.27、つまり Linux/i386 カーネル 1.3.27 に おける ioctl
51 コールの一覧です。このリストは \fI</usr/include/{asm,linux}/*.h>\fP にある 421 の ioctl
52 を含んでいます。全ての ioctl に対して、数値、名称、 引き数の型を列挙してあります。
53 .PP
54 引き数型 \fIconst struct foo\ *\fP は、その引き数がカーネルへの入力である事を意味します。また、 \fIstruct foo\ *\fP
55 は、その引き数がカーネルからの出力である事を意味します。 カーネルがその引き数を入力と出力の両方に使用する場合は、 \fI//\ I\-O\fP
56 マークを付けてあります。
57 .PP
58 いくつかの ioctl は複数の構造体の引き数を必要としたり、値を返したり します。これらには \fI//\ MORE\fP マークを付けて、
59 さらに分離したセクションで説明してあります。
60 .PP
61 このリストは不完全です。
62 .SS "ioctl の構造"
63 .\" added two sections - aeb
64 ioctl コマンドの値は 32 ビットの定数です。 原則として、これらの定数は全く任意のものですが、
65 設計者は何らかの構造をこれらの定数に組み込もうとしています。
66 .LP
67 昔の Linux では、大部分は 16 ビットの定数であり、 下位バイトはシリアル番号で、上位バイトはドライバのタイプを表していました。
68 メジャー番号が使われることもありました: 0x03 が \fBHDIO_*\fP ioctl, 0x06 が \fBLP*\fP ioctl などです。 1
69 文字以上の ASCII 文字列が使われることもありました。 たとえば \fBTCGETS\fP の値は 0x00005401 であり、 0x54 =
70 \(aqT\(aq でターミナルドライバを表します。 \fBCYGETTIMEOUT\fP の値は 0x00435906 であり、 0x43 0x59 =
71 \(aqC\(aq \(aqY\(aq で cyclades ドライバを表します。
72 .LP
73 後の時代 (0.98p5) になると、 より多くの情報が数値に組み込まれるようになりました。 1 つの数値は、読み書きの方向を表す 2 ビット (00:
74 読み書きなし, 01: 書き込み, 10: 読み込み, 11: 読み込み/書き込み)、 (引き数のサイズを表す) 14 ビット、
75 (共通の目的または共通のドライバで ioctl をグループにするための)  8 ビットのタイプ、8 ビットのシリアル番号から構成されます。
76 .LP
77 この構造を記述するマクロは \fI<asm/ioctl.h>\fP にあり、 \fB_IO(type,nr)\fP と
78 \fB{_IOR,_IOW,_IOWR}(type,nr,size)\fP です。 これらのマクロは \fIsizeof(size)\fP を使うので、 ここで
79 size という名前にしているのは間違っています: この 3 つ目の引き数はデータタイプです。
80 .LP
81 size ビットは全く当てにならない点に注意して下さい: 多くの場合、間違っています。 これは \fIsizeof(sizeof(struct))\fP
82 を使ったバグを含んだマクロや、過去から受け継いだ値が原因です。
83 .LP
84 したがって、新しい構造は不都合な点しかないように思われます: この構造はチェックの手助けにはならず、
85 様々なアーキテクチャによって値を変化させてしまいます。
86 .SH 返り値
87 きちんとした ioctl は、成功した場合は 0 を返し、 エラーの場合は \-1 を返します。 また出力値は引き数に格納します。
88 しかし実際は、かなり多くの ioctl が出力値を返します。 これは今のところ以下では示されていません。
89
90 // Main table.
91
92 // <include/asm\-i386/socket.h>
93 .TS
94 l l l.
95 0x00008901      FIOSETOWN       const int *
96 0x00008902      SIOCSPGRP       const int *
97 0x00008903      FIOGETOWN       int *
98 0x00008904      SIOCGPGRP       int *
99 0x00008905      SIOCATMAR       int *
100 0x00008906      SIOCGSTAMP      timeval *
101 .TE
102
103 // <include/asm\-i386/termios.h>
104 .TS
105 l l l l.
106 0x00005401      TCGETS  struct termios *
107 0x00005402      TCSETS  const struct termios *
108 0x00005403      TCSETSW const struct termios *
109 0x00005404      TCSETSF const struct termios *
110 0x00005405      TCGETA  struct termio *
111 0x00005406      TCSETA  const struct termio *
112 0x00005407      TCSETAW const struct termio *
113 0x00005408      TCSETAF const struct termio *
114 0x00005409      TCSBRK  int
115 0x0000540A      TCXONC  int
116 0x0000540B      TCFLSH  int
117 0x0000540C      TIOCEXCL        void
118 0x0000540D      TIOCNXCL        void
119 0x0000540E      TIOCSCTTY       int
120 0x0000540F      TIOCGPGRP       pid_t *
121 0x00005410      TIOCSPGRP       const pid_t *
122 0x00005411      TIOCOUTQ        int *
123 0x00005412      TIOCSTI const char *
124 0x00005413      TIOCGWINSZ      struct winsize *
125 0x00005414      TIOCSWINSZ      const struct winsize *
126 0x00005415      TIOCMGET        int *
127 0x00005416      TIOCMBIS        const int *
128 0x00005417      TIOCMBIC        const int *
129 0x00005418      TIOCMSET        const int *
130 0x00005419      TIOCGSOFTCAR    int *
131 0x0000541A      TIOCSSOFTCAR    const int *
132 0x0000541B      FIONREAD        int *
133 0x0000541B      TIOCINQ int *
134 0x0000541C      TIOCLINUX       const char *    // MORE
135 0x0000541D      TIOCCONS        void
136 0x0000541E      TIOCGSERIAL     struct serial_struct *
137 0x0000541F      TIOCSSERIAL     const struct serial_struct *
138 0x00005420      TIOCPKT const int *
139 0x00005421      FIONBIO const int *
140 0x00005422      TIOCNOTTY       void
141 0x00005423      TIOCSETD        const int *
142 0x00005424      TIOCGETD        int *
143 0x00005425      TCSBRKP int
144 0x00005426      TIOCTTYGSTRUCT  struct tty_struct *
145 0x00005450      FIONCLEX        void
146 0x00005451      FIOCLEX void
147 0x00005452      FIOASYNC        const int *
148 0x00005453      TIOCSERCONFIG   void
149 0x00005454      TIOCSERGWILD    int *
150 0x00005455      TIOCSERSWILD    const int *
151 0x00005456      TIOCGLCKTRMIOS  struct termios *
152 0x00005457      TIOCSLCKTRMIOS  const struct termios *
153 0x00005458      TIOCSERGSTRUCT  struct async_struct *
154 0x00005459      TIOCSERGETLSR   int *
155 .TE
156 .\" Some tables are split into two or more to avoid the warning:
157 .\" "table wider than line width".  Some lines are to long to fit
158 .\" on one line on an 80 columns console
159 .TS
160 l l l.
161 0x0000545A      TIOCSERGETMULTI struct serial_multiport_struct *
162 0x0000545B      TIOCSERSETMULTI const struct serial_multiport_struct *
163 .TE
164
165 // <include/linux/ax25.h>
166 .TS
167 l l l l.
168 0x000089E0      SIOCAX25GETUID  const struct sockaddr_ax25 *
169 0x000089E1      SIOCAX25ADDUID  const struct sockaddr_ax25 *
170 0x000089E2      SIOCAX25DELUID  const struct sockaddr_ax25 *
171 0x000089E3      SIOCAX25NOUID   const int *
172 0x000089E4      SIOCAX25DIGCTL  const int *
173 0x000089E5      SIOCAX25GETPARMS        struct ax25_parms_struct *      // I\-O
174 .TE
175 .TS
176 l l l.
177 0x000089E6      SIOCAX25SETPARMS        const struct ax25_parms_struct *
178 .TE
179
180 // <include/linux/cdk.h>
181 .TS
182 l l l.
183 0x00007314      STL_BINTR       void
184 0x00007315      STL_BSTART      void
185 0x00007316      STL_BSTOP       void
186 0x00007317      STL_BRESET      void
187 .TE
188
189 // <include/linux/cdrom.h>
190 .TS
191 l l l.
192 0x00005301      CDROMPAUSE      void
193 0x00005302      CDROMRESUME     void
194 0x00005303      CDROMPLAYMSF    const struct cdrom_msf *
195 0x00005304      CDROMPLAYTRKIND const struct cdrom_ti *
196 0x00005305      CDROMREADTOCHDR struct cdrom_tochdr *
197 .TE
198 .TS
199 l l l l.
200 0x00005306      CDROMREADTOCENTRY       struct cdrom_tocentry * // I\-O
201 .TE
202 .TS
203 l l l l.
204 0x00005307      CDROMSTOP       void
205 0x00005308      CDROMSTART      void
206 0x00005309      CDROMEJECT      void
207 0x0000530A      CDROMVOLCTRL    const struct cdrom_volctrl *
208 0x0000530B      CDROMSUBCHNL    struct cdrom_subchnl *  // I\-O
209 0x0000530C      CDROMREADMODE2  const struct cdrom_msf *        // MORE
210 0x0000530D      CDROMREADMODE1  const struct cdrom_msf *        // MORE
211 0x0000530E      CDROMREADAUDIO  const struct cdrom_read_audio * // MORE
212 0x0000530F      CDROMEJECT_SW   int
213 .TE
214 .TS
215 l l l l.
216 0x00005310      CDROMMULTISESSION       struct cdrom_multisession *     // I\-O
217 .TE
218 .TS
219 l l l l.
220 0x00005311      CDROM_GET_UPC   struct { char [8]; } *
221 0x00005312      CDROMRESET      void
222 0x00005313      CDROMVOLREAD    struct cdrom_volctrl *
223 0x00005314      CDROMREADRAW    const struct cdrom_msf *        // MORE
224 0x00005315      CDROMREADCOOKED const struct cdrom_msf *        // MORE
225 0x00005316      CDROMSEEK       const struct cdrom_msf *
226 .TE
227
228 // <include/linux/cm206.h>
229 .TS
230 l l l.
231 0x00002000      CM206CTL_GET_STAT       int
232 0x00002001      CM206CTL_GET_LAST_STAT  int
233 .TE
234
235 // <include/linux/cyclades.h>
236 .TS
237 l l l.
238 0x00435901      CYGETMON        struct cyclades_monitor *
239 0x00435902      CYGETTHRESH     int *
240 0x00435903      CYSETTHRESH     int
241 0x00435904      CYGETDEFTHRESH  int *
242 0x00435905      CYSETDEFTHRESH  int
243 0x00435906      CYGETTIMEOUT    int *
244 0x00435907      CYSETTIMEOUT    int
245 0x00435908      CYGETDEFTIMEOUT int *
246 0x00435909      CYSETDEFTIMEOUT int
247 .TE
248
249 // <include/linux/ext2_fs.h>
250 .TS
251 l l l.
252 0x80046601      EXT2_IOC_GETFLAGS       int *
253 0x40046602      EXT2_IOC_SETFLAGS       const int *
254 0x80047601      EXT2_IOC_GETVERSION     int *
255 0x40047602      EXT2_IOC_SETVERSION     const int *
256 .TE
257
258 // <include/linux/fd.h>
259 .TS
260 l l l.
261 0x00000000      FDCLRPRM        void
262 0x00000001      FDSETPRM        const struct floppy_struct *
263 0x00000002      FDDEFPRM        const struct floppy_struct *
264 0x00000003      FDGETPRM        struct floppy_struct *
265 0x00000004      FDMSGON void
266 0x00000005      FDMSGOFF        void
267 0x00000006      FDFMTBEG        void
268 0x00000007      FDFMTTRK        const struct format_descr *
269 0x00000008      FDFMTEND        void
270 0x0000000A      FDSETEMSGTRESH  int
271 0x0000000B      FDFLUSH void
272 0x0000000C      FDSETMAXERRS    const struct floppy_max_errors *
273 0x0000000E      FDGETMAXERRS    struct floppy_max_errors *
274 0x00000010      FDGETDRVTYP     struct { char [16]; } *
275 0x00000014      FDSETDRVPRM     const struct floppy_drive_params *
276 0x00000015      FDGETDRVPRM     struct floppy_drive_params *
277 0x00000016      FDGETDRVSTAT    struct floppy_drive_struct *
278 0x00000017      FDPOLLDRVSTAT   struct floppy_drive_struct *
279 0x00000018      FDRESET int
280 0x00000019      FDGETFDCSTAT    struct floppy_fdc_state *
281 0x0000001B      FDWERRORCLR     void
282 0x0000001C      FDWERRORGET     struct floppy_write_errors *
283 .TE
284 .TS
285 l l l l.
286 0x0000001E      FDRAWCMD        struct floppy_raw_cmd * // MORE // I\-O
287 0x00000028      FDTWADDLE       void
288 .TE
289
290 // <include/linux/fs.h>
291 .TS
292 l l l l.
293 0x0000125D      BLKROSET        const int *
294 0x0000125E      BLKROGET        int *
295 0x0000125F      BLKRRPART       void
296 0x00001260      BLKGETSIZE      unsigned long *
297 0x00001261      BLKFLSBUF       void
298 0x00001262      BLKRASET        int
299 0x00001263      BLKRAGET        int *
300 0x00000001      FIBMAP  int *   // I\-O
301 0x00000002      FIGETBSZ        int *
302 .TE
303
304 // <include/linux/hdreg.h>
305 .TS
306 l l l l.
307 0x00000301      HDIO_GETGEO     struct hd_geometry *
308 0x00000302      HDIO_GET_UNMASKINTR     int *
309 0x00000304      HDIO_GET_MULTCOUNT      int *
310 0x00000307      HDIO_GET_IDENTITY       struct hd_driveid *
311 0x00000308      HDIO_GET_KEEPSETTINGS   int *
312 0x00000309      HDIO_GET_CHIPSET        int *
313 0x0000030A      HDIO_GET_NOWERR int *
314 0x0000030B      HDIO_GET_DMA    int *
315 0x0000031F      HDIO_DRIVE_CMD  int *   // I\-O
316 0x00000321      HDIO_SET_MULTCOUNT      int
317 0x00000322      HDIO_SET_UNMASKINTR     int
318 0x00000323      HDIO_SET_KEEPSETTINGS   int
319 0x00000324      HDIO_SET_CHIPSET        int
320 0x00000325      HDIO_SET_NOWERR int
321 0x00000326      HDIO_SET_DMA    int
322 .TE
323
324 // <include/linux/if_eql.h>
325 .TS
326 l l l l.
327 0x000089F0      EQL_ENSLAVE     struct ifreq *  // MORE // I\-O
328 0x000089F1      EQL_EMANCIPATE  struct ifreq *  // MORE // I\-O
329 0x000089F2      EQL_GETSLAVECFG struct ifreq *  // MORE // I\-O
330 0x000089F3      EQL_SETSLAVECFG struct ifreq *  // MORE // I\-O
331 0x000089F4      EQL_GETMASTRCFG struct ifreq *  // MORE // I\-O
332 0x000089F5      EQL_SETMASTRCFG struct ifreq *  // MORE // I\-O
333 .TE
334
335 // <include/linux/if_plip.h>
336 .TS
337 l l l l.
338 0x000089F0      SIOCDEVPLIP     struct ifreq *  // I\-O
339 .TE
340
341 // <include/linux/if_ppp.h>
342 .TS
343 l l l.
344 0x00005490      PPPIOCGFLAGS    int *
345 0x00005491      PPPIOCSFLAGS    const int *
346 0x00005492      PPPIOCGASYNCMAP int *
347 0x00005493      PPPIOCSASYNCMAP const int *
348 0x00005494      PPPIOCGUNIT     int *
349 0x00005495      PPPIOCSINPSIG   const int *
350 0x00005497      PPPIOCSDEBUG    const int *
351 0x00005498      PPPIOCGDEBUG    int *
352 0x00005499      PPPIOCGSTAT     struct ppp_stats *
353 0x0000549A      PPPIOCGTIME     struct ppp_ddinfo *
354 0x0000549B      PPPIOCGXASYNCMAP        struct { int [8]; } *
355 0x0000549C      PPPIOCSXASYNCMAP        const struct { int [8]; } *
356 0x0000549D      PPPIOCSMRU      const int *
357 0x0000549E      PPPIOCRASYNCMAP const int *
358 0x0000549F      PPPIOCSMAXCID   const int *
359 .TE
360
361 // <include/linux/ipx.h>
362 .TS
363 l l l.
364 0x000089E0      SIOCAIPXITFCRT  const char *
365 0x000089E1      SIOCAIPXPRISLT  const char *
366 0x000089E2      SIOCIPXCFGDATA  struct ipx_config_data *
367 .TE
368
369 // <include/linux/kd.h>
370 .TS
371 l l l.
372 0x00004B60      GIO_FONT        struct { char [8192]; } *
373 0x00004B61      PIO_FONT        const struct { char [8192]; } *
374 .TE
375 .TS
376 l2 l2 l2 l.
377 0x00004B6B      GIO_FONTX       struct console_font_desc *      // MORE // I\-O
378 0x00004B6C      PIO_FONTX       const struct console_font_desc *        //MORE
379 .TE
380 .TS
381 l l l.
382 0x00004B70      GIO_CMAP        struct { char [48]; } *
383 0x00004B71      PIO_CMAP        const struct { char [48]; }
384 .TE
385 .TS
386 l l l l.
387 0x00004B2F      KIOCSOUND       int
388 0x00004B30      KDMKTONE        int
389 0x00004B31      KDGETLED        char *
390 0x00004B32      KDSETLED        int
391 0x00004B33      KDGKBTYPE       char *
392 0x00004B34      KDADDIO int     // MORE
393 0x00004B35      KDDELIO int     // MORE
394 0x00004B36      KDENABIO        void    // MORE
395 0x00004B37      KDDISABIO       void    // MORE
396 0x00004B3A      KDSETMODE       int
397 0x00004B3B      KDGETMODE       int *
398 0x00004B3C      KDMAPDISP       void    // MORE
399 0x00004B3D      KDUNMAPDISP     void    // MORE
400 0x00004B40      GIO_SCRNMAP     struct { char [E_TABSZ]; } *
401 .TE
402 .TS
403 l l l.
404 0x00004B41      PIO_SCRNMAP     const struct { char [E_TABSZ]; } *
405 0x00004B69      GIO_UNISCRNMAP  struct { short [E_TABSZ]; } *
406 0x00004B6A      PIO_UNISCRNMAP  const struct { short [E_TABSZ]; } *
407 .TE
408 .TS
409 l l l l.
410 0x00004B66      GIO_UNIMAP      struct unimapdesc *     // MORE // I\-O
411 0x00004B67      PIO_UNIMAP      const struct unimapdesc *       // MORE
412 0x00004B68      PIO_UNIMAPCLR   const struct unimapinit *
413 0x00004B44      KDGKBMODE       int *
414 0x00004B45      KDSKBMODE       int
415 0x00004B62      KDGKBMETA       int *
416 0x00004B63      KDSKBMETA       int
417 0x00004B64      KDGKBLED        int *
418 0x00004B65      KDSKBLED        int
419 0x00004B46      KDGKBENT        struct kbentry *        // I\-O
420 0x00004B47      KDSKBENT        const struct kbentry *
421 0x00004B48      KDGKBSENT       struct kbsentry *       // I\-O
422 0x00004B49      KDSKBSENT       const struct kbsentry *
423 0x00004B4A      KDGKBDIACR      struct kbdiacrs *
424 0x00004B4B      KDSKBDIACR      const struct kbdiacrs *
425 0x00004B4C      KDGETKEYCODE    struct kbkeycode *      // I\-O
426 0x00004B4D      KDSETKEYCODE    const struct kbkeycode *
427 0x00004B4E      KDSIGACCEPT     int
428 .TE
429
430 // <include/linux/lp.h>
431 .TS
432 l l l.
433 0x00000601      LPCHAR  int
434 0x00000602      LPTIME  int
435 0x00000604      LPABORT int
436 0x00000605      LPSETIRQ        int
437 0x00000606      LPGETIRQ        int *
438 0x00000608      LPWAIT  int
439 0x00000609      LPCAREFUL       int
440 0x0000060A      LPABORTOPEN     int
441 0x0000060B      LPGETSTATUS     int *
442 0x0000060C      LPRESET void
443 0x0000060D      LPGETSTATS      struct lp_stats *
444 .TE
445
446 // <include/linux/mroute.h>
447 .TS
448 l l l l.
449 0x000089E0      SIOCGETVIFCNT   struct sioc_vif_req *   // I\-O
450 0x000089E1      SIOCGETSGCNT    struct sioc_sg_req *    // I\-O
451 .TE
452
453 // <include/linux/mtio.h>
454 .TS
455 l l l.
456 0x40086D01      MTIOCTOP        const struct mtop *
457 0x801C6D02      MTIOCGET        struct mtget *
458 0x80046D03      MTIOCPOS        struct mtpos *
459 0x80206D04      MTIOCGETCONFIG  struct mtconfiginfo *
460 0x40206D05      MTIOCSETCONFIG  const struct mtconfiginfo *
461 .TE
462
463 // <include/linux/netrom.h>
464 .TS
465 l l l l.
466 0x000089E0      SIOCNRGETPARMS  struct nr_parms_struct *        // I\-O
467 0x000089E1      SIOCNRSETPARMS  const struct nr_parms_struct *
468 0x000089E2      SIOCNRDECOBS    void
469 0x000089E3      SIOCNRRTCTL     const int *
470 .TE
471
472 // <include/linux/sbpcd.h>
473 .TS
474 l l l.
475 0x00009000      DDIOCSDBG       const int *
476 0x00005382      CDROMAUDIOBUFSIZ        int
477 .TE
478
479 // <include/linux/scc.h>
480 .TS
481 l l l l.
482 0x00005470      TIOCSCCINI      void
483 0x00005471      TIOCCHANINI     const struct scc_modem *
484 0x00005472      TIOCGKISS       struct ioctl_command *  // I\-O
485 0x00005473      TIOCSKISS       const struct ioctl_command *
486 0x00005474      TIOCSCCSTAT     struct scc_stat *
487 .TE
488
489 // <include/linux/scsi.h>
490 .TS
491 l l l.
492 0x00005382      SCSI_IOCTL_GET_IDLUN    struct { int [2]; } *
493 0x00005383      SCSI_IOCTL_TAGGED_ENABLE        void
494 0x00005384      SCSI_IOCTL_TAGGED_DISABLE       void
495 .TE
496 .TS
497 l l l l.
498 0x00005385      SCSI_IOCTL_PROBE_HOST   const int *     // MORE
499 .TE
500
501 // <include/linux/smb_fs.h>
502 .TS
503 l l l.
504 0x80027501      SMB_IOC_GETMOUNTUID     uid_t *
505 .TE
506
507 // <include/linux/sockios.h>
508 .TS
509 l l l l.
510 0x0000890B      SIOCADDRT       const struct rtentry *  // MORE
511 0x0000890C      SIOCDELRT       const struct rtentry *  // MORE
512 0x00008910      SIOCGIFNAME     char []
513 0x00008911      SIOCSIFLINK     void
514 0x00008912      SIOCGIFCONF     struct ifconf * // MORE // I\-O
515 0x00008913      SIOCGIFFLAGS    struct ifreq *  // I\-O
516 0x00008914      SIOCSIFFLAGS    const struct ifreq *
517 0x00008915      SIOCGIFADDR     struct ifreq *  // I\-O
518 0x00008916      SIOCSIFADDR     const struct ifreq *
519 0x00008917      SIOCGIFDSTADDR  struct ifreq *  // I\-O
520 0x00008918      SIOCSIFDSTADDR  const struct ifreq *
521 0x00008919      SIOCGIFBRDADDR  struct ifreq *  // I\-O
522 0x0000891A      SIOCSIFBRDADDR  const struct ifreq *
523 0x0000891B      SIOCGIFNETMASK  struct ifreq *  // I\-O
524 0x0000891C      SIOCSIFNETMASK  const struct ifreq *
525 0x0000891D      SIOCGIFMETRIC   struct ifreq *  // I\-O
526 0x0000891E      SIOCSIFMETRIC   const struct ifreq *
527 0x0000891F      SIOCGIFMEM      struct ifreq *  // I\-O
528 0x00008920      SIOCSIFMEM      const struct ifreq *
529 0x00008921      SIOCGIFMTU      struct ifreq *  // I\-O
530 0x00008922      SIOCSIFMTU      const struct ifreq *
531 .TE
532 .TS
533 l l l l.
534 0x00008923      OLD_SIOCGIFHWADDR       struct ifreq *  // I\-O
535 0x00008924      SIOCSIFHWADDR   const struct ifreq *    // MORE
536 0x00008925      SIOCGIFENCAP    int *
537 0x00008926      SIOCSIFENCAP    const int *
538 0x00008927      SIOCGIFHWADDR   struct ifreq *  // I\-O
539 0x00008929      SIOCGIFSLAVE    void
540 0x00008930      SIOCSIFSLAVE    void
541 0x00008931      SIOCADDMULTI    const struct ifreq *
542 0x00008932      SIOCDELMULTI    const struct ifreq *
543 0x00008940      SIOCADDRTOLD    void
544 0x00008941      SIOCDELRTOLD    void
545 0x00008950      SIOCDARP        const struct arpreq *
546 0x00008951      SIOCGARP        struct arpreq * // I\-O
547 0x00008952      SIOCSARP        const struct arpreq *
548 0x00008960      SIOCDRARP       const struct arpreq *
549 0x00008961      SIOCGRARP       struct arpreq * // I\-O
550 0x00008962      SIOCSRARP       const struct arpreq *
551 0x00008970      SIOCGIFMAP      struct ifreq *  // I\-O
552 0x00008971      SIOCSIFMAP      const struct ifreq *
553 .TE
554
555 // <include/linux/soundcard.h>
556 .TS
557 l l l.
558 0x00005100      SNDCTL_SEQ_RESET        void
559 0x00005101      SNDCTL_SEQ_SYNC void
560 .TE
561 .TS
562 l l l l.
563 0xC08C5102      SNDCTL_SYNTH_INFO       struct synth_info *     // I\-O
564 0xC0045103      SNDCTL_SEQ_CTRLRATE     int *   // I\-O
565 0x80045104      SNDCTL_SEQ_GETOUTCOUNT  int *
566 0x80045105      SNDCTL_SEQ_GETINCOUNT   int *
567 0x40045106      SNDCTL_SEQ_PERCMODE     void
568 .TE
569 .TS
570 l l l.
571 0x40285107      SNDCTL_FM_LOAD_INSTR    const struct sbi_instrument *
572 .TE
573 .TS
574 l l l l.
575 0x40045108      SNDCTL_SEQ_TESTMIDI     const int *
576 0x40045109      SNDCTL_SEQ_RESETSAMPLES const int *
577 0x8004510A      SNDCTL_SEQ_NRSYNTHS     int *
578 0x8004510B      SNDCTL_SEQ_NRMIDIS      int *
579 0xC074510C      SNDCTL_MIDI_INFO        struct midi_info *      // I\-O
580 0x4004510D      SNDCTL_SEQ_THRESHOLD    const int *
581 0xC004510E      SNDCTL_SYNTH_MEMAVL     int *   // I\-O
582 0x4004510F      SNDCTL_FM_4OP_ENABLE    const int *
583 0xCFB85110      SNDCTL_PMGR_ACCESS      struct patmgr_info *    // I\-O
584 0x00005111      SNDCTL_SEQ_PANIC        void
585 .TE
586 .TS
587 l l l.
588 0x40085112      SNDCTL_SEQ_OUTOFBAND    const struct seq_event_rec *
589 .TE
590 .TS
591 l l l l.
592 0xC0045401      SNDCTL_TMR_TIMEBASE     int *   // I\-O
593 0x00005402      SNDCTL_TMR_START        void
594 0x00005403      SNDCTL_TMR_STOP void
595 0x00005404      SNDCTL_TMR_CONTINUE     void
596 0xC0045405      SNDCTL_TMR_TEMPO        int *   // I\-O
597 0xC0045406      SNDCTL_TMR_SOURCE       int *   // I\-O
598 0x40045407      SNDCTL_TMR_METRONOME    const int *
599 0x40045408      SNDCTL_TMR_SELECT       int *   // I\-O
600 0xCFB85001      SNDCTL_PMGR_IFACE       struct patmgr_info *    // I\-O
601 0xC0046D00      SNDCTL_MIDI_PRETIME     int *   // I\-O
602 0xC0046D01      SNDCTL_MIDI_MPUMODE     const int *
603 .TE
604 .TS
605 l l l l.
606 0xC0216D02      SNDCTL_MIDI_MPUCMD      struct mpu_command_rec *        // I\-O
607 .TE
608 .TS
609 l l l l.
610 0x00005000      SNDCTL_DSP_RESET        void
611 0x00005001      SNDCTL_DSP_SYNC void
612 0xC0045002      SNDCTL_DSP_SPEED        int *   // I\-O
613 0xC0045003      SNDCTL_DSP_STEREO       int *   // I\-O
614 0xC0045004      SNDCTL_DSP_GETBLKSIZE   int *   // I\-O
615 0xC0045006      SOUND_PCM_WRITE_CHANNELS        int *   // I\-O
616 0xC0045007      SOUND_PCM_WRITE_FILTER  int *   // I\-O
617 0x00005008      SNDCTL_DSP_POST void
618 0xC0045009      SNDCTL_DSP_SUBDIVIDE    int *   // I\-O
619 0xC004500A      SNDCTL_DSP_SETFRAGMENT  int *   // I\-O
620 0x8004500B      SNDCTL_DSP_GETFMTS      int *
621 0xC0045005      SNDCTL_DSP_SETFMT       int *   // I\-O
622 .TE
623 .TS
624 l l l.
625 0x800C500C      SNDCTL_DSP_GETOSPACE    struct audio_buf_info *
626 0x800C500D      SNDCTL_DSP_GETISPACE    struct audio_buf_info *
627 0x0000500E      SNDCTL_DSP_NONBLOCK     void
628 0x80045002      SOUND_PCM_READ_RATE     int *
629 0x80045006      SOUND_PCM_READ_CHANNELS int *
630 0x80045005      SOUND_PCM_READ_BITS     int *
631 0x80045007      SOUND_PCM_READ_FILTER   int *
632 0x00004300      SNDCTL_COPR_RESET       void
633 0xCFB04301      SNDCTL_COPR_LOAD        const struct copr_buffer *
634 .TE
635 .TS
636 l l l l.
637 0xC0144302      SNDCTL_COPR_RDATA       struct copr_debug_buf * // I\-O
638 0xC0144303      SNDCTL_COPR_RCODE       struct copr_debug_buf * // I\-O
639 .TE
640 .TS
641 l l l.
642 0x40144304      SNDCTL_COPR_WDATA       const struct copr_debug_buf *
643 0x40144305      SNDCTL_COPR_WCODE       const struct copr_debug_buf *
644 .TE
645 .TS
646 l l l l.
647 0xC0144306      SNDCTL_COPR_RUN struct copr_debug_buf * // I\-O
648 0xC0144307      SNDCTL_COPR_HALT        struct copr_debug_buf * // I\-O
649 .TE
650 .TS
651 l l l.
652 0x4FA44308      SNDCTL_COPR_SENDMSG     const struct copr_msg *
653 0x8FA44309      SNDCTL_COPR_RCVMSG      struct copr_msg *
654 0x80044D00      SOUND_MIXER_READ_VOLUME int *
655 0x80044D01      SOUND_MIXER_READ_BASS   int *
656 0x80044D02      SOUND_MIXER_READ_TREBLE int *
657 0x80044D03      SOUND_MIXER_READ_SYNTH  int *
658 0x80044D04      SOUND_MIXER_READ_PCM    int *
659 0x80044D05      SOUND_MIXER_READ_SPEAKER        int *
660 0x80044D06      SOUND_MIXER_READ_LINE   int *
661 0x80044D07      SOUND_MIXER_READ_MIC    int *
662 0x80044D08      SOUND_MIXER_READ_CD     int *
663 0x80044D09      SOUND_MIXER_READ_IMIX   int *
664 0x80044D0A      SOUND_MIXER_READ_ALTPCM int *
665 0x80044D0B      SOUND_MIXER_READ_RECLEV int *
666 0x80044D0C      SOUND_MIXER_READ_IGAIN  int *
667 0x80044D0D      SOUND_MIXER_READ_OGAIN  int *
668 0x80044D0E      SOUND_MIXER_READ_LINE1  int *
669 0x80044D0F      SOUND_MIXER_READ_LINE2  int *
670 0x80044D10      SOUND_MIXER_READ_LINE3  int *
671 0x80044D1C      SOUND_MIXER_READ_MUTE   int *
672 0x80044D1D      SOUND_MIXER_READ_ENHANCE        int *
673 0x80044D1E      SOUND_MIXER_READ_LOUD   int *
674 0x80044DFF      SOUND_MIXER_READ_RECSRC int *
675 0x80044DFE      SOUND_MIXER_READ_DEVMASK        int *
676 0x80044DFD      SOUND_MIXER_READ_RECMASK        int *
677 0x80044DFB      SOUND_MIXER_READ_STEREODEVS     int *
678 0x80044DFC      SOUND_MIXER_READ_CAPS   int *
679 .TE
680 .TS
681 l l l l.
682 0xC0044D00      SOUND_MIXER_WRITE_VOLUME        int *   // I\-O
683 0xC0044D01      SOUND_MIXER_WRITE_BASS  int *   // I\-O
684 0xC0044D02      SOUND_MIXER_WRITE_TREBLE        int *   // I\-O
685 0xC0044D03      SOUND_MIXER_WRITE_SYNTH int *   // I\-O
686 0xC0044D04      SOUND_MIXER_WRITE_PCM   int *   // I\-O
687 0xC0044D05      SOUND_MIXER_WRITE_SPEAKER       int *   // I\-O
688 0xC0044D06      SOUND_MIXER_WRITE_LINE  int *   // I\-O
689 0xC0044D07      SOUND_MIXER_WRITE_MIC   int *   // I\-O
690 0xC0044D08      SOUND_MIXER_WRITE_CD    int *   // I\-O
691 0xC0044D09      SOUND_MIXER_WRITE_IMIX  int *   // I\-O
692 0xC0044D0A      SOUND_MIXER_WRITE_ALTPCM        int *   // I\-O
693 0xC0044D0B      SOUND_MIXER_WRITE_RECLEV        int *   // I\-O
694 0xC0044D0C      SOUND_MIXER_WRITE_IGAIN int *   // I\-O
695 0xC0044D0D      SOUND_MIXER_WRITE_OGAIN int *   // I\-O
696 0xC0044D0E      SOUND_MIXER_WRITE_LINE1 int *   // I\-O
697 0xC0044D0F      SOUND_MIXER_WRITE_LINE2 int *   // I\-O
698 0xC0044D10      SOUND_MIXER_WRITE_LINE3 int *   // I\-O
699 0xC0044D1C      SOUND_MIXER_WRITE_MUTE  int *   // I\-O
700 0xC0044D1D      SOUND_MIXER_WRITE_ENHANCE       int *   // I\-O
701 0xC0044D1E      SOUND_MIXER_WRITE_LOUD  int *   // I\-O
702 0xC0044DFF      SOUND_MIXER_WRITE_RECSRC        int *   // I\-O
703 .TE
704
705 // <include/linux/umsdos_fs.h>
706 .TS
707 l l l l.
708 0x000004D2      UMSDOS_READDIR_DOS      struct umsdos_ioctl *   // I\-O
709 0x000004D3      UMSDOS_UNLINK_DOS       const struct umsdos_ioctl *
710 0x000004D4      UMSDOS_RMDIR_DOS        const struct umsdos_ioctl *
711 0x000004D5      UMSDOS_STAT_DOS struct umsdos_ioctl *   // I\-O
712 0x000004D6      UMSDOS_CREAT_EMD        const struct umsdos_ioctl *
713 0x000004D7      UMSDOS_UNLINK_EMD       const struct umsdos_ioctl *
714 0x000004D8      UMSDOS_READDIR_EMD      struct umsdos_ioctl *   // I\-O
715 0x000004D9      UMSDOS_GETVERSION       struct umsdos_ioctl *
716 0x000004DA      UMSDOS_INIT_EMD void
717 0x000004DB      UMSDOS_DOS_SETUP        const struct umsdos_ioctl *
718 0x000004DC      UMSDOS_RENAME_DOS       const struct umsdos_ioctl *
719 .TE
720
721 // <include/linux/vt.h>
722 .TS
723 l l l.
724 0x00005600      VT_OPENQRY      int *
725 0x00005601      VT_GETMODE      struct vt_mode *
726 0x00005602      VT_SETMODE      const struct vt_mode *
727 0x00005603      VT_GETSTATE     struct vt_stat *
728 0x00005604      VT_SENDSIG      void
729 0x00005605      VT_RELDISP      int
730 0x00005606      VT_ACTIVATE     int
731 0x00005607      VT_WAITACTIVE   int
732 0x00005608      VT_DISALLOCATE  int
733 0x00005609      VT_RESIZE       const struct vt_sizes *
734 0x0000560A      VT_RESIZEX      const struct vt_consize *
735 .TE
736
737 // More arguments.  いくつかの ioctl は追加のポインタを含む構造体へのポインタを使用します。
738 ここでこれらをアルファベット順に説明します。
739
740 \fBCDROMREADAUDIO\fP は入力ポインタ \fIconst struct cdrom_read_audio\ *\fP を使用します。 \fIbuf\fP
741 フィールドは大きさ \fInframes\ * CD_FRAMESIZE_RAW\fP の出力バッファへのポインタです。
742
743 \fBCDROMREADCOOKED\fP, \fBCDROMREADMODE1\fP, \fBCDROMREADMODE2\fP, \fBCDROMREADRAW\fP
744 は入力ポインタ \fIconst struct cdrom_msf\ *\fP を使用します。これらは同じポインタを \fIchar []\fP
745 への出力ポインタとして使用します。 長さは要求によって変化します。 \fBCDROMREADMODE1\fP には、多くのデバイスが CD_FRAMESIZE
746 を使用しますが、光学記憶装置 (光ディスク) のドライバは OPT_BLOCKSIZE を使用します (どちらも同じ値で 2048 です)。
747 .nf
748
749     CDROMREADCOOKED    char [CD_FRAMESIZE]
750     CDROMREADMODE1     char [CD_FRAMESIZE or OPT_BLOCKSIZE]
751     CDROMREADMODE2     char [CD_FRAMESIZE_RAW0]
752     CDROMREADRAW       char [CD_FRAMESIZE_RAW]
753
754 .fi
755 \fBEQL_ENSLAVE\fP, \fBEQL_EMANCIPATE\fP, \fBEQL_GETSLAVECFG\fP, \fBEQL_SETSLAVECFG\fP,
756 \fBEQL_GETMASTERCFG\fP, \fBEQL_SETMASTERCFG\fP は \fIstruct ifreq\ *\fP を使用します。
757 \fIifr_data\fP フィールドは以下に示す別の構造体へのポインタです:
758 .nf
759
760     EQL_ENSLAVE         const struct slaving_request *
761     EQL_EMANCIPATE      const struct slaving_request *
762     EQL_GETSLAVECFG     struct slave_config *           // I\-O
763     EQL_SETSLAVECFG     const struct slave_config *
764     EQL_GETMASTERCFG    struct master_config *
765     EQL_SETMASTERCFG    const struct master_config *
766
767 .fi
768 \fBFDRAWCMD\fP は \fIstruct floppy raw_cmd\ *\fP を使用します。 \fIflags & FD_RAW_WRITE\fP
769 がゼロ以外の場合、 \fIdata\fP は大きさ \fIlength\fP の入力バッファへのポインタになります。 \fIflags & FD_RAW_READ\fP
770 がゼロ以外の場合、 \fIdata\fP は大きさ \fIlength\fP の出力バッファへのポインタになります。
771
772 \fBGIO_FONTX\fP, \fBPIO_FONTX\fP はそれぞれ \fIstruct console_font_desc\ *\fP と \fIconst
773 struct console_font_desc\ *\fP を使用します。 \fIchardata\fP は \fIchar [charcount]\fP
774 バッファへのポインタです。 これは \fBGIO_FONTX\fP の出力バッファと \fBPIO_FONTX\fP の入力バッファです。
775
776 \fBGIO_UNIMAP\fP, \fBPIO_UNIMAP\fP はそれぞれ \fIstruct unimapdesc\ *\fP と \fIconst struct
777 unimapdesc\ *\fP を使用します。 \fIentries\fP は \fIstruct unipair [entry_ct]\fP
778 バッファへのポインタです。 これは \fBGIO_UNIMAP\fP の出力バッファと \fBPIO_UNIMAP\fP の入力バッファです。
779
780 KDADDIO, KDDELIO, KDDISABIO, KDENABIO は I/O ポートへのアクセスを
781 可能/不可能にします。これらは本質的に、'ioperm' への別の インターフェースです。
782
783 \fBKDMAPDISP\fP, \fBKDUNMAPDISP\fP はメモリ・マッピングや I/O ポートへのアクセスを可能/不可能にします。
784 これらはカーネルに実装されていません。
785
786 \fBSCSI_IOCTL_PROBE_HOST\fP は入力ポインタ \fIconst int\ *\fP を大きさとして使用します。これは同じ大きさの
787 \fIchar []\fP バッファ への出力ポインタとしても使用します。
788
789 \fBSIOCADDRT\fP, \fBSIOCDELRT\fP は型が以下のプロトコルに依存する入力ポインタを使用します:
790 .nf
791
792     Most protocols      const struct rtentry *
793     AX.25               const struct ax25_route *
794     NET/ROM             const struct nr_route_struct *
795
796 .fi
797 \fBSIOCGIFCONF\fP は \fIstruct ifconf\ *\fP を使用します。この \fIifc_buf\fP フィールドは長さ
798 \fIifc_len\fP バイトのバッファへのポインタです。 これにカーネルが \fIstruct ifreq []\fP 型のリストへ書き込みます。
799
800 \fBSIOCSIFHWADDR\fP は型が以下のプロトコルに依存する入力ポインタを使用します:
801 .nf
802
803     Most protocols      const struct ifreq *
804     AX.25               const char [AX25_ADDR_LEN]
805
806 .fi
807 \fBTIOCLINUX\fP は \fIconst char\ *\fP を使用します。このポインタをいくつかの
808 独立したサブクラスを識別する為に使用します。以下のテーブルの中で、 \fIN + foo\fP は N バイトの詰めものの後にある \fIfoo\fP
809 を意味します。 \fIstruct selection\fP は暗黙的に \fIdrivers/char/selection.c\fP の中で定義されています。
810 .nf
811
812     TIOCLINUX\-2         1 + const struct selection *
813     TIOCLINUX\-3         void
814     TIOCLINUX\-4         void
815     TIOCLINUX\-5         4 + const struct { long [8]; } *
816     TIOCLINUX\-6         char *
817     TIOCLINUX\-7         char *
818     TIOCLINUX\-10        1 + const char *
819
820 .fi
821 // Duplicate ioctls
822
823 このリストは \fBSIOCDEVPRIVATE\fP から \fBSIOCPROTOPRIVATE\fP の範囲の ioctl を含んでいません。
824 .TS
825 l l l.
826 0x00000001      FDSETPRM        FIBMAP
827 0x00000002      FDDEFPRM        FIGETBSZ
828 0x00005382      CDROMAUDIOBUFSIZ        SCSI_IOCTL_GET_IDLUN
829 0x00005402      SNDCTL_TMR_START        TCSETS
830 0x00005403      SNDCTL_TMR_STOP TCSETSW
831 0x00005404      SNDCTL_TMR_CONTINUE     TCSETSF
832 .TE
833 .SH 関連項目
834 \fBioctl\fP(2)
835 .SH この文書について
836 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
837 である。プロジェクトの説明とバグ報告に関する情報は
838 http://www.kernel.org/doc/man\-pages/ に書かれている。