OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / draft / man4 / console_ioctl.4
1 .\" Copyright (c) 1995 Jim Van Zandt <jrv@vanzandt.mv.com> and aeb
2 .\" Sun Feb 26 11:46:23 MET 1995
3 .\"
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
22 .\" USA.
23 .\"
24 .\" Modified, Sun Feb 26 15:04:20 1995, faith@cs.unc.edu
25 .\" Modified, Thu Apr 20 22:08:17 1995, jrv@vanzandt.mv.com
26 .\" Modified, Mon Sep 18 22:32:47 1995, hpa@storm.net (H. Peter Anvin)
27 .\" FIXME The following are not documented:
28 .\"     KDFONTOP (since 2.1.111)
29 .\"     KDGKBDIACRUC (since 2.6.24)
30 .\"     KDSKBDIACR
31 .\"     KDSKBDIACRUC (since 2.6.24)
32 .\"     KDKBDREP (since 2.1.113)
33 .\"     KDMAPDISP (not implemented as at 2.6.27)
34 .\"     KDUNMAPDISP (not implemented as at 2.6.27)
35 .\"     VT_LOCKSWITCH (since 1.3.47, needs CAP_SYS_TTY_CONFIG)
36 .\"     VT_UNLOCKSWITCH (since 1.3.47, needs CAP_SYS_TTY_CONFIG)
37 .\"     VT_GETHIFONTMASK (since 2.6.18)
38 .\"
39 .\" Japanese Version Copyright (c) 1996,1997 TAKAHASHI Mutsuji
40 .\"                                1998      ISHIKAWA Mutsumi
41 .\"                               all rights reserved.
42 .\" Translated Sun Jan 11 03:24:14 JST 1998
43 .\"         by TAKAHASHI Mutsuji <muz@ilp.iijnet.or.jp>
44 .\"            and ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
45 .\"
46 .\" Japanese Version Last Modified Thu Feb  5 17:35:37 JST 1998
47 .\"     by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
48 .\" Updated & Modefied Sat Feb 27 1999 by Shouichi Saito
49 .\" Updated Tue Jan 28 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
50 .\"
51 .TH CONSOLE_IOCTL 4 2009-02-28 "Linux" "Linux Programmer's Manual"
52 .\"O .SH NAME
53 .SH Ì¾Á°
54 .\"O console_ioctl \- ioctl's for console terminal and virtual consoles
55 console_ioctl \- ¥³¥ó¥½¡¼¥ëüËö¤È²¾ÁÛ¥³¥ó¥½¡¼¥ë¤Î ioctl
56 .\"O .SH DESCRIPTION
57 .SH ÀâÌÀ
58 .\"O The following Linux-specific
59 .\"O .BR ioctl (2)
60 .\"O requests are supported.
61 .\"O Each requires a third argument, assumed here to be \fIargp\fP.
62 ¼¡¤Î¤è¤¦¤Ê Linux ¸ÇÍ­¤Î
63 .BR ioctl (2)
64 ¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£
65 ¤½¤ì¤¾¤ì3ÈÖÌܤΰú¿ô¤¬É¬ÍפǤ¢¤ë¡¢¤³¤³¤Ç¤Ï \fIargp\fP ¤È¤¹¤ë¡£
66 .IP \fBKDGETLED\fP
67 .\"O Get state of LEDs.
68 .\"O \fIargp\fP points to a \fIchar\fP.
69 .\"O The lower three bits
70 .\"O of \fI*argp\fP are set to the state of the LEDs, as follows:
71 LED ¤Î¾õÂÖ¤ò¼èÆÀ¤¹¤ë¡£
72 \fIargp\fP ¤Ï \fIchar\fP ¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
73 \fI*argp\fP ¤Î²¼°Ì 3 ¥Ó¥Ã¥È¤Ë°Ê²¼¤Î¤è¤¦¤Ë LED ¤Î¾õÂÖ¤¬¥»¥Ã¥È¤µ¤ì¤ë¡£
74
75 .\"O     LED_CAP       0x04   caps lock led
76 .\"O     LEC_NUM       0x02   num lock led
77 .\"O     LED_SCR       0x01   scroll lock led
78     LED_CAP       0x04   ¥­¥ã¥Ô¥¿¥ë¥í¥Ã¥¯¤¬ÅÀÅô
79     LEC_NUM       0x02   ¥Ê¥ó¥Ð¡¼¥í¥Ã¥¯¤¬ÅÀÅô
80     LED_SCR       0x01   ¥¹¥¯¥í¡¼¥ë¥í¥Ã¥¯¤¬ÅÀÅô
81 .IP \fBKDSETLED\fP
82 .\"O Set the LEDs.
83 .\"O The LEDs are set to correspond to the lower three bits of
84 .\"O \fIargp\fP.
85 .\"O However, if a higher order bit is set,
86 .\"O the LEDs revert to normal: displaying the state of the
87 .\"O keyboard functions of caps lock, num lock, and scroll lock.
88 LED¤òÅÀÅô¤µ¤»¤ë¡£LED¤Ï \fIargp\fP ¤Î²¼°Ì 3 ¥Ó¥Ã¥È¤Ë½¾¤¤ÅÀÅô¤µ¤ì¤ë¡£
89 ¤·¤«¤·¡¢¤è¤ê¹â°Ì¤Î¥Ó¥Ã¥È¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë»þ¤Ë¤Ï¡¢¥­¥ã¥Ô¥¿¥ë¥í¥Ã¥¯¡¢
90 ¥Ê¥ó¥Ð¡¼¥í¥Ã¥¯¡¢¥¹¥¯¥í¡¼¥ë¥í¥Ã¥¯¤Î¥­¡¼¥Ü¡¼¥Éµ¡Ç½¤Î¾õÂÖ¤òɽ¼¨¤¹¤ë LED ¤Ï
91 Ä̾ï¾õÂÖ¤ËÌá¤ë¡£
92 .LP
93 .\"O Before 1.1.54, the LEDs just reflected the state of the corresponding
94 .\"O keyboard flags, and KDGETLED/KDSETLED would also change the keyboard
95 .\"O flags.
96 .\"O Since 1.1.54 the leds can be made to display arbitrary
97 .\"O information, but by default they display the keyboard flags.
98 .\"O The following two ioctl's are used to access the keyboard flags.
99 ¥«¡¼¥Í¥ë 1.1.54 °ÊÁ°¤Ï¡¢LED ¤Ï¤½¤ì¤¾¤ì¤Î¥­¡¼¥Ü¡¼¥É¥Õ¥é¥°¤Î¾õÂÖ¤òÈ¿±Ç¤¹¤ë
100 ¤À¤±¤Ç¡¢KDGETLED/KDSETLED ¤â¥­¡¼¥Ü¡¼¥É¥Õ¥é¥°¤òÊѹ¹¤¹¤ë¤À¤±¤Ç¤¢¤Ã¤¿¡£
101 ¥«¡¼¥Í¥ël 1.1.54 ¤«¤é¤Ï LED ¤ËǤ°Õ¤Îɽ¼¨¤ò¤¹¤ë»ö¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤¬¡¢
102 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥­¡¼¥Ü¡¼¥É¥Õ¥é¥°¤òɽ¼¨¤¹¤ë¡£
103 ¼¡¤Ë¼¨¤¹ 2 ¤Ä¤Î ioctl ¤Ï¥­¡¼¥Ü¡¼¥É¥Õ¥é¥°¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤Î¤ËÍѤ¤¤é¤ì¤ë¡£
104 .IP \fBKDGKBLED\fP
105 .\"O Get keyboard flags CapsLock, NumLock, ScrollLock (not lights).
106 .\"O \fIargp\fP points to a char which is set to the flag state.
107 .\"O The low order three bits (mask 0x7) get the current flag state,
108 .\"O and the low order bits of the next nibble (mask 0x70) get
109 .\"O the default flag state.
110 .\"O (Since 1.1.54.)
111 ¥­¥ã¥Ô¥¿¥ë¥í¥Ã¥¯¡¢¥Ê¥ó¥Ð¡¼¥í¥Ã¥¯¡¢¥¹¥¯¥í¡¼¥ë¥í¥Ã¥¯¤Î(LED ¤Îɽ¼¨¤Ç¤Ï
112 ¤Ê¤¯)¥­¡¼¥Ü¡¼¥É¥Õ¥é¥°¤òÆÀ¤ë¡£
113 \fIargp\fP ¤Ï¥Õ¥é¥°¤Î¾õÂÖ¤¬¥»¥Ã¥È¤µ¤ì¤ëʸ»úÊÑ¿ô¤ò»Ø¤¹¡£
114 (0x7)¤Ç¥Þ¥¹¥¯¤·¤ÆÆÀ¤é¤ì¤ë²¼°Ì 3 ¥Ó¥Ã¥È¤¬¸½ºß¤Î¥Õ¥é¥°¤Î¾õÂÖ¤ò¼¨¤·¡¢
115 (0x70)¤Ç¥Þ¥¹¥¯¤·¤ÆÆÀ¤é¤ì¤ë¼¡¤Î 3 ¥Ó¥Ã¥È¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥é¥°¤Î¾õÂÖ¤ò
116 ¼¨¤¹¡£(¥«¡¼¥Í¥ë 1.1.54°Ê¹ß)
117 .IP \fBKDSKBLED\fP
118 .\"O Set keyboard flags CapsLock, NumLock, ScrollLock (not lights).
119 .\"O \fIargp\fP has the desired flag state.
120 .\"O The low order three bits (mask 0x7) have the flag state,
121 .\"O and the low order bits of the next nibble (mask 0x70) have
122 .\"O the default flag state.
123 .\"O (Since 1.1.54.)
124 ¥­¥ã¥Ô¥¿¥ë¥í¥Ã¥¯¡¢¥Ê¥ó¥Ð¡¼¥í¥Ã¥¯¡¢¥¹¥¯¥í¡¼¥ë¥í¥Ã¥¯¤Î(LED ¤Îɽ¼¨¤Ç¤Ï¤Ê¤¯)
125 ¥­¡¼¥Ü¡¼¥É¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¡£
126 \fIargp\fP ¤¬¥»¥Ã¥È¤·¤¿¤¤¥Õ¥é¥°¤Ç¤¢¤ë¡£
127 (0x7)¤Ç¥Þ¥¹¥¯¤·¤ÆÆÀ¤é¤ì¤ë²¼°Ì 3 ¥Ó¥Ã¥È¤¬¥Õ¥é¥°¤Î¾õÂ֤ǡ¢(0x70)¤Ç¥Þ¥¹¥¯¤·¤Æ
128 ÆÀ¤é¤ì¤ë¼¡¤Î 3 ¥Ó¥Ã¥È¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥é¥°¤Î¾õÂ֤Ǥ¢¤ë¡£(¥«¡¼¥Í¥ë
129 1.1.54°Ê¹ß)
130 .IP \fBKDGKBTYPE\fP
131 .\"O Get keyboard type.
132 .\"O This returns the value KB_101, defined as 0x02.
133 ¥­¡¼¥Ü¡¼¥É¤Î¼ïÎà¤òÆÀ¤ë¡£¤³¤ì¤ÏÃÍ 0x02 ¤ÈÄêµÁ¤µ¤ì¤Æ¤¤¤ë KB_101¤òÊÖ¤¹¡£
134 .IP \fBKDADDIO\fP
135 .\"O Add I/O port as valid.
136 .\"O Equivalent to \fPioperm(arg,1,1)\fP.
137 I/O¥Ý¡¼¥È¤òÍ­¸ú¤Êʪ¤È¤·¤Æ²Ã¤¨¤ë¡£¤³¤ì¤Ï \fIioperm(arg,1,1)\fP ¤ÈÅù²Á¤Ç¤¢¤ë¡£
138 .IP \fBKDDELIO\fP
139 .\"O Delete I/O port as valid.
140 .\"O Equivalent to \fIioperm(arg,1,0)\fP.
141 I/O¥Ý¡¼¥È¤òÍ­¸ú¤Êʪ¤«¤é³°¤¹¡£¤³¤ì¤Ï \fIioperm(arg,1,0)\fP ¤ÈÅù²Á¤Ç¤¢¤ë¡£
142 .IP \fBKDENABIO\fP
143 .\"O Enable I/O to video board.
144 .\"O Equivalent to \fIioperm(0x3b4, 0x3df-0x3b4+1, 1)\fP.
145 ¥Ó¥Ç¥ª¥Ü¡¼¥É¤Ø¤Î I/O ¤ò²Äǽ¤Ë¤¹¤ë¡£
146 ¤³¤ì¤Ï \fIioperm(0x3b4, 0x3df-0x3b4+1, 1)\fP ¤ÈÅù²Á¤Ç¤¢¤ë¡£
147 .IP \fBKDDISABIO\fP
148 .\"O Disable I/O to video board.
149 .\"O Equivalent to \fIioperm(0x3b4, 0x3df-0x3b4+1, 0)\fP.
150 ¥Ó¥Ç¥ª¥Ü¡¼¥É¤Ø¤Î I/O ¤òÉÔ²Äǽ¤Ë¤¹¤ë¡£
151 ¤³¤ì¤Ï \fIioperm(0x3b4, 0x3df-0x3b4+1, 0)\fP ¤ÈÅù²Á¤Ç¤¢¤ë¡£
152 .IP \fBKDSETMODE\fP
153 .\"O Set text/graphics mode.
154 .\"O \fIargp\fP is one of these:
155 ¥Æ¥­¥¹¥È/¥°¥é¥Õ¥£¥¯¥¹¥â¡¼¥É¤òÀßÄꤹ¤ë¡£
156 \fIargp\fP ¤Ï¼¡¤Î¤¦¤Á¤Î¤É¤ì¤«¡§
157
158     KD_TEXT       0x00
159     KD_GRAPHICS   0x01
160 .IP \fBKDGETMODE\fP
161 .\"O Get text/graphics mode.
162 .\"O \fIargp\fP points to a \fIlong\fP which is set to one
163 .\"O of the above values.
164 ¥Æ¥­¥¹¥È/¥°¥é¥Õ¥£¥¯¥¹¥â¡¼¥É¤ò¼èÆÀ¤¹¤ë¡£
165 \fIargp\fP ¤¬»Ø¤¹ \fIlong\fP ·¿ÊÑ¿ô¤Ë
166 ¾å½Ò¤ÎÃͤΤɤÁ¤é¤«¤¬¥»¥Ã¥È¤µ¤ì¤ë¡£
167 .IP \fBKDMKTONE\fP
168 .\"O Generate tone of specified length.
169 .\"O The lower 16 bits of \fIargp\fP specify the period in clock cycles,
170 .\"O and the upper 16 bits give the duration in msec.
171 .\"O If the duration is zero, the sound is turned off.
172 .\"O Control returns immediately.
173 .\"O For example, \fIargp\fP = (125<<16) + 0x637 would specify
174 .\"O the beep normally associated with a ctrl-G.
175 .\"O (Thus since 0.99pl1; broken in 2.1.49-50.)
176 »ØÄꤵ¤ì¤¿Ä¹¤µ¤Î¥È¡¼¥ó¤òȯÀ¸¤¹¤ë¡£
177 \fIargp\fP ¤Î²¼°Ì 16 ¥Ó¥Ã¥È¤Ï¥¯¥í¥Ã¥¯¥µ¥¤¥¯¥ë¤òñ°Ì¤Ë¤·¤Æ¼þ´ü¤ò»ØÄꤷ¡¢
178 ¾å°Ì 16 ¥Ó¥Ã¥È¤¬ msec ¤Îñ°Ì¤Çɽ¤·¤¿¡¢(¥È¡¼¥ó¤òȯÀ¸¤µ¤»¤ë)»þ´Ö¤ò»ØÄꤹ¤ë¡£
179 ¥È¡¼¥ó¤òȯÀ¸¤µ¤»¤ë»þ´Ö¤¬¥¼¥í¤Î¤È¤­¤Ï¡¢¥µ¥¦¥ó¥É¤Ï¥ª¥Õ¤Ë¤Ê¤ë¡£
180 À©¸æ¤Ïľ¤Á¤ËÌá¤ë¡£
181 Î㤨¤Ð¡¢\fIargp\fP = (125<<16) + 0x637 ¤È¤¹¤ì¤Ð¡¢Ä̾ï ctrl-G ¤ò²¡¤·¤¿»þ¤Ë
182 ȯÀ¸¤¹¤ë²»¤Ë¤Ê¤ë¡£
183 (¥«¡¼¥Í¥ë 0.99pl1 °Ê¹ß;¤³¤Îµ¡Ç½¤Ï ¥«¡¼¥Í¥ë 2.1.49 ¤«¤é
184 2.1.50 ¤Ç¤Ï¥Ð¥°¤Î¤¿¤áÆ°ºî¤·¤Ê¤¤)
185 .IP \fBKIOCSOUND\fP
186 .\"O Start or stop sound generation.
187 .\"O The lower 16 bits of
188 .\"O \fIargp\fP specify the period in clock cycles
189 .\"O (that is, \fIargp\fP = 1193180/frequency).
190 .\"O \fIargp\fP = 0 turns sound off.
191 .\"O In either case, control returns immediately.
192 ²»¤ÎȯÀ¸¤Î³«»Ï¤äÄä»ß¤ò¹Ô¤¦¡£
193 \fIargp\fP ¤Î²¼°Ì 16 ¥Ó¥Ã¥È¤Ï¥¯¥í¥Ã¥¯¥µ¥¤¥¯¥ë¤òñ°Ì¤È¤·¤Æ¼þ´ü¤ò¼¨¤¹¡£
194 (¤Ä¤Þ¤ê \fIargp\fP = 1193180/¼þÇÈ¿ô)¡£
195 \fIargp\fP = 0 ¤Î¾ì¹ç¡¢¥µ¥¦¥ó¥É¤Ï¥ª¥Õ¤Ë¤Ê¤ë¡£
196 ¤É¤Á¤é¤Î¾ì¹ç¤Ç¤â¡¢¤¿¤À¤Á¤ËÀ©¸æ¤ÏÌá¤ë¡£
197 .IP \fBGIO_CMAP\fP
198 .\"O Get the current default color map from kernel.
199 .\"O \fIargp\fP points to
200 .\"O a 48-byte array.
201 .\"O (Since 1.3.3.)
202 ¸½ºß¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥«¥é¡¼¥Þ¥Ã¥×¤ò¥«¡¼¥Í¥ë¤è¤ê¼èÆÀ¤¹¤ë¡£
203 .\"O \fIargp\fP ¤Ï 48 ¥Ð¥¤¥È¤ÎÇÛÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¡£(¥«¡¼¥Í¥ë 1.3.3 °Ê¹ß)
204 .IP \fBPIO_CMAP\fP
205 .\"O Change the default text-mode color map.
206 .\"O \fIargp\fP points to a
207 .\"O 48-byte array which contains, in order, the Red, Green, and Blue
208 .\"O values for the 16 available screen colors: 0 is off, and 255 is full
209 .\"O intensity.
210 .\"O The default colors are, in order: black, dark red, dark
211 .\"O green, brown, dark blue, dark purple, dark cyan, light grey, dark
212 .\"O grey, bright red, bright green, yellow, bright blue, bright purple,
213 .\"O bright cyan and white.
214 .\"O (Since 1.3.3.)
215 ¥Ç¥Õ¥©¥ë¥È¤Î¥Æ¥­¥¹¥È¥â¡¼¥É¤Î¥«¥é¡¼¥Þ¥Ã¥×¤òÊѹ¹¤¹¤ë¡£
216 \fIargp\fP ¤¬»Ø¤¹ 48 ¥Ð¥¤¥È¤ÎÇÛÎóÃæ¤Ë¤Ï¡¢16 ¤Î²Äǽ¤Ê¥¹¥¯¥ê¡¼¥ó¤Î¿§¤ò¡¢
217 ÀÖ¡¢ÎС¢ÀĤνç¤Ë 0 ¤ò¥ª¥Õ¡¢255¤òºÇÂ綯Å٤Ȥ·¤¿ÃͤȤ·¤ÆǼ¤á¤ë¡£
218 ¥Ç¥Õ¥©¥ë¥È¤Î¿§¤Ï½ç¤Ë¡¢¹õ¡¢Ç»¤¤ÀÖ¡¢Ç»¤¤ÎС¢Ã㡢ǻ¤¤ÀÄ¡¢Ç»¤¤»ç¡¢Ç»¤¤¥·¥¢¥ó¡¢
219 ÌÀ¤ë¤¤³¥¿§¡¢Ç»¤¤³¥¿§¡¢ÌÀ¤ë¤¤ÀÖ¡¢ÌÀ¤ë¤¤ÎС¢²«¡¢ÌÀ¤ë¤¤ÀÄ¡¢ÌÀ¤ë¤¤»ç¡¢
220 ÌÀ¤ë¤¤¥·¥¢¥ó¡¢Çò¤Ç¤¢¤ë¡£(¥«¡¼¥Í¥ë 1.3.3°Ê¹ß)
221 .IP \fBGIO_FONT\fP
222 .\"O Gets 256-character screen font in expanded form.
223 .\"O \fIargp\fP points to an 8192 byte array.
224 .\"O Fails with error code \fBEINVAL\fP if the
225 .\"O currently loaded font is a 512-character font, or if the console is
226 .\"O not in text mode.
227 ³ÈÄ¥¤µ¤ì¤¿·Á¼°¤Ç 256 Ê¸»ú¤Î¥¹¥¯¥ê¡¼¥ó¥Õ¥©¥ó¥È¤òÆÀ¤ë¡£
228 \fIargp\fP ¤Ï 8192 ¥Ð¥¤¥È¤ÎÇÛÎó¤ò»Ø¤¹¡£
229 ¸½ºß¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ó¥È¤¬ 512 Ê¸»ú¤Î¥Õ¥©¥ó¥È¤Ç¤¢¤ë¤«¡¢¥³¥ó¥½¡¼¥ë¤¬
230 ¥Æ¥­¥¹¥È¥â¡¼¥É¤Ç¤Ê¤¤»þ¤Ë¤Ï¼ºÇÔ¤· \fBEINVAL\fP ¤Î¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹¡£
231 .IP \fBGIO_FONTX\fP
232 .\"O Gets screen font and associated information.
233 .\"O \fIargp\fP points to a
234 .\"O struct consolefontdesc (see \fBPIO_FONTX\fP).
235 .\"O On call, the
236 .\"O \fIcharcount\fP field should be set to the maximum number of
237 .\"O characters that would fit in the buffer pointed to by \fIchardata\fP.
238 .\"O On return, the \fIcharcount\fP and \fIcharheight\fP are filled with
239 .\"O the respective data for the currently loaded font, and the
240 .\"O \fIchardata\fP array contains the font data if the initial value of
241 .\"O \fIcharcount\fP indicated enough space was available; otherwise the
242 .\"O buffer is untouched and \fIerrno\fP is set to \fBENOMEM\fP.
243 .\"O (Since 1.3.1.)
244 ¥¹¥¯¥ê¡¼¥ó¥Õ¥©¥ó¥È¤È¤½¤ì¤Ë´ØÏ¢¤·¤¿¾ðÊó¤ò¼èÆÀ¤¹¤ë¡£
245 \fIargp\fP ¤Ï¹½Â¤ÂΠconsolefontdesc (\fBPIO_FONTX\fP ¤ò»²¾È¤Î¤³¤È)¤ò»Ø¤¹¡£
246 ´Ø¿ô¸Æ¤Ó½Ð¤·¤Î¤È¤­¤Ë¤Ï¡¢\fIcharcount\fP ¤Ë¤Ï¡¢\fIchardata\fP ¤¬»Ø¤¹
247 ¥Ð¥Ã¥Õ¥¡¤Ë¤ª¤µ¤Þ¤ëºÇÂç¤Îʸ»ú¿ô¤ò¥»¥Ã¥È¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
248 ´Ø¿ô¸Æ¤Ó½Ð¤·¤«¤éÌá¤Ã¤¿»þ¤Ë¤Ï \fIcharcount\fP ¤È \fIcharheight\fP ¤Ë¤Ï¡¢
249 ¸½ºß¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ó¥È¤Î³ºÅö¤¹¤ë¥Ç¡¼¥¿¤¬¼ý¤á¤é¤ì¤Æ¤¤¤ë¡£
250 ÇÛÎó \fIchardata\fP ¤Ë¤Ï¡¢ºÇ½é¤Ë \fIcharcount\fP ¤Ë¤¤¤ì¤¿Ãͤˤè¤Ã¤Æ
251 ¥Õ¥©¥ó¥È¤ò¼ý¤á¤ë¤Î¤Ë½½Ê¬¤Ê¥¹¥Ú¡¼¥¹¤¬¤¢¤ë¤È¤ï¤«¤ì¤Ð¥Õ¥©¥ó¥È¥Ç¡¼¥¿¤¬¼ý¤á¤é¤ì¤ë¡£
252 ¤½¤¦¤Ç¤Ê¤¤»þ¤Ë¤Ï¡¢¥Ð¥Ã¥Õ¥¡¤ÏÊѹ¹¤µ¤ì¤º¡¢ \fIerrno\fP ¤Ë \fBENOMEM\fP ¤¬
253 ¥»¥Ã¥È¤µ¤ì¤ë(¥«¡¼¥Í¥ë 1.3.1 °Ê¹ß)¡£
254 .IP \fBPIO_FONT\fP
255 .\"O Sets 256-character screen font.
256 .\"O Load font into the EGA/VGA character
257 .\"O generator.
258 .\"O \fIargp\fP points to a 8192 byte map, with 32 bytes per
259 .\"O character.
260 .\"O Only first \fIN\fP of them are used for an 8x\fIN\fP font
261 .\"O (0 < \fIN\fP <= 32).
262 .\"O This call also invalidates the Unicode mapping.
263 256 Ê¸»ú¤Î¥Õ¥©¥ó¥È¤ò¥»¥Ã¥È¤¹¤ë¡£EGA/VGA ¥­¥ã¥é¥¯¥¿¡¼¥¸¥§¥Í¥ì¡¼¥¿¡¼
264 (character generator) ¤Ë¥Õ¥©¥ó¥È¤ò¥í¡¼¥É¤¹¤ë¡£
265 \fIargp\fP ¤Ï¡¢8192 ¥Ð¥¤¥È(°ìʸ»ú 32 ¥Ð¥¤¥È)¤Î¥Þ¥Ã¥×¤ò»Ø¤¹¡£
266 ¥Þ¥Ã¥×¤Î¤¦¤Á¡¢ºÇ½é¤Î \fIN\fP ¤Î¤ß¤¬ 8x\fIN\fP ¤Î¥Õ¥©¥ó¥È¤Î¤¿¤á¤Ë
267 ÍѤ¤¤é¤ì¤ë(0 < \fIN\fP <= 32)¡£
268 ¤³¤Î¸Æ¤Ó½Ð¤·¤ò¤¹¤ë¤È Unicode ¤Î¥Þ¥Ã¥Ô¥ó¥°¤¬Ìµ¸ú¤Ë¤Ê¤ë¡£
269 .IP \fBPIO_FONTX\fP
270 .\"O Sets screen font and associated rendering information.
271 .\"O \fIargp\fP
272 .\"O points to a
273 ¥¹¥¯¥ê¡¼¥ó¥Õ¥©¥ó¥È¤È¡¢¤½¤ì¤Ë´ØÏ¢¤¹¤ë¥ì¥ó¥À¥ê¥ó¥°¾ðÊó¤ò¥»¥Ã¥È¤¹¤ë¡£
274 \fIargp\fP ¤Ï¡¢°Ê²¼¤Î¹½Â¤ÂΤò»Ø¤¹¡£
275
276 .in +4n
277 .nf
278 struct consolefontdesc {
279 .\"O     unsigned short charcount;  /* characters in font
280 .\"O                                   (256 or 512) */
281 .\"O     unsigned short charheight; /* scan lines per
282 .\"O                                   character (1-32) */
283 .\"O     char          *chardata;   /* font data in
284 .\"O                                   expanded form */
285     unsigned short charcount;  /* ¥Õ¥©¥ó¥È¤Îʸ»ú¿ô
286                                   (256 ¤Þ¤¿¤Ï 512) */
287     unsigned short charheight; /* °ìʸ»ú¤ÎÁöººÀþ¤Î¿ô
288                                   (1-32) */
289     char          *chardata;   /* Å¸³«¤µ¤ì¤¿¥Õ¥©¥ó¥È¥Ç¡¼¥¿ */
290 };
291 .fi
292 .in
293
294 .\"O If necessary, the screen will be appropriately resized, and
295 .\"O \fBSIGWINCH\fP sent to the appropriate processes.
296 .\"O This call also invalidates the Unicode mapping.
297 .\"O (Since 1.3.1.)
298 ɬÍפʤ饹¥¯¥ê¡¼¥ó¤ÏŬÅö¤Ë¥µ¥¤¥ºÊѹ¹¤µ¤ì¡¢\fBSIGWINCH\fP ¤¬Å¬ÀÚ¤Ê
299 ¥×¥í¥»¥¹¤ËÁ÷¤é¤ì¤ë¡£
300 ¤³¤Î¥³¡¼¥ë¤Ë¤è¤ê Unicode ¤Î¥Þ¥Ã¥Ô¥ó¥°¤¬Ìµ¸ú¤Ë¤Ê¤ë¡£
301 .IP \fBPIO_FONTRESET\fP
302 .\"O Resets the screen font, size and Unicode mapping to the bootup
303 .\"O defaults.
304 .\"O \fIargp\fP is unused, but should be set to NULL to
305 .\"O ensure compatibility with future versions of Linux.
306 .\"O (Since 1.3.28.)
307 ¥¹¥¯¥ê¡¼¥ó¥Õ¥©¥ó¥È¡¢¥µ¥¤¥º¡¢ Unicode ¥Þ¥Ã¥Ô¥ó¥°¤ò¥Ö¡¼¥È»þ¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤË
308 ¥ê¥»¥Ã¥È¤¹¤ë¡£\fIargp\fP ¤ÏÍѤ¤¤é¤ì¤Ê¤¤¤¬¡¢¾­Íè¤Î¥Ð¡¼¥¸¥ç¥ó¤Î
309 Linux ¤È¤Î¸ß´¹À­¤òÊݤĤ¿¤á¤Ë NULL ¤Ë¥»¥Ã¥È¤¹¤Ù¤­¤Ç¤¢¤ë¡£
310 .IP \fBGIO_SCRNMAP\fP
311 .\"O Get screen mapping from kernel.
312 .\"O \fIargp\fP points to an area of size
313 .\"O E_TABSZ, which is loaded with the font positions used to display each
314 .\"O character.
315 .\"O This call is likely to return useless information if the
316 .\"O currently loaded font is more than 256 characters.
317 ¥¹¥¯¥ê¡¼¥ó¥Þ¥Ã¥Ô¥ó¥°¤ò¥«¡¼¥Í¥ë¤è¤ê¼èÆÀ¤¹¤ë¡£\fIargp\fP ¤Ï¥µ¥¤¥º E_TABSZ ¤Î
318 Îΰè¤ò»Ø¤¹¡£¤½¤ÎÎΰè¤Ë¤Ï³Æ¥­¥ã¥é¥¯¥¿¡¼¤òɽ¼¨¤¹¤ë¤Î¤ËÍѤ¤¤é¤ì¤ë¥Õ¥©¥ó¥È¤Î
319 °ÌÃÖ¤¬¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¡£
320 ¤³¤Î¸Æ¤Ó½Ð¤·¤Ï¸½ºß¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ó¥È¤¬ 256 Ê¸»ú¤è¤ê¤â¿¤¤»þ¤Ë¤Ï
321 ̵°ÕÌ£¤Ê¾ðÊó¤òÊÖ¤¹»ö¤¬Â¿¤¤¡£
322 .IP \fBGIO_UNISCRNMAP\fP
323 .\"O Get full Unicode screen mapping from kernel.
324 .\"O \fIargp\fP points to an
325 .\"O area of size E_TABSZ*sizeof(unsigned short), which is loaded with the
326 .\"O Unicodes each character represent.
327 .\"O A special set of Unicodes,
328 .\"O starting at U+F000, are used to represent "direct to font" mappings.
329 .\"O (Since 1.3.1.)
330 ¥Õ¥ë Unicode ¥¹¥¯¥ê¡¼¥ó¥Þ¥Ã¥Ô¥ó¥°¤ò¥«¡¼¥Í¥ë¤è¤ê¼èÆÀ¤¹¤ë¡£
331 \fIargp\fP ¤Ï¥µ¥¤¥º E_TABSZ*sizeof(unsigned short) ¤ÎÎΰè¤ò»Ø¤¹¡£
332 ¤½¤ÎÎΰè¤Ë¤Ï³Æ¥­¥ã¥é¥¯¥¿¡¼¤ò¼¨¤¹ Unicode ¤¬¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¡£
333 U+F000 ¤Ë»Ï¤Þ¤ë Unicode ¤ÎÆÃÊ̤ʽ¸¹ç¤Ï¡¢¡Ö¥Õ¥©¥ó¥ÈľÀܤÊ(direct to font)¡×
334 ¥Þ¥Ã¥Ô¥ó¥°¤ò¼¨¤¹¤Î¤ËÍѤ¤¤é¤ì¤ë(¥«¡¼¥Í¥ë 1.3.1 °Ê¹ß)¡£
335 .IP \fBPIO_SCRNMAP\fP
336 .\"O Loads the "user definable" (fourth) table in the kernel which maps
337 .\"O bytes into console screen symbols.
338 .\"O \fIargp\fP points to an area of
339 .\"O size E_TABSZ.
340 ¡Ö¥æ¡¼¥¶¡¼ÄêµÁ²Äǽ¤Ê(user definable)¡×(4ÈÖÌܤÎ)¥Æ¡¼¥Ö¥ë¤ò¥«¡¼¥Í¥ë¤Ë
341 ¥í¡¼¥É¤¹¤ë¡£¤½¤Î¥Æ¡¼¥Ö¥ë¤Ï³Æ¥Ð¥¤¥È¤ò¥¹¥¯¥ê¡¼¥ó¥·¥ó¥Ü¥ë¤Ë¥Þ¥Ã¥Ô¥ó¥°¤¹¤ë¡£
342 \fIargp\fP ¤Ï¥µ¥¤¥ºE_TABSZ¤ÎÎΰè¤ò»Ø¤¹¡£
343 .IP \fBPIO_UNISCRNMAP\fP
344 .\"O Loads the "user definable" (fourth) table in the kernel which maps
345 .\"O bytes into Unicodes, which are then translated into screen symbols
346 .\"O according to the currently loaded Unicode-to-font map.
347 .\"O Special Unicodes starting at U+F000 can be used to map directly to the font
348 .\"O symbols.
349 .\"O (Since 1.3.1.)
350 ¡Ö¥æ¡¼¥¶¡¼ÄêµÁ²Äǽ¤Ê¡×(4ÈÖÌܤÎ)¥Æ¡¼¥Ö¥ë¤ò¥«¡¼¥Í¥ë¤Ë¥í¡¼¥É¤¹¤ë¡£
351 ¤½¤Î¥Æ¡¼¥Ö¥ë¤Ï³Æ¥Ð¥¤¥È¤ò¥æ¥Ë¥³¡¼¥É¤Ë¥Þ¥Ã¥Ô¥ó¥°¤·¡¢¤½¤Î¸å¡¢
352 ¸½ºß¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¥æ¥Ë¥³¡¼¥É¤«¤é¥Õ¥©¥ó¥È¤Ø¤Î¥Þ¥Ã¥×¤Ë½¾¤¤
353 ¥¹¥¯¥ê¡¼¥ó¥·¥ó¥Ü¥ë¤ËÊÑ´¹¤µ¤ì¤ë¡£
354 U+F000 ¤Ë»Ï¤Þ¤ë¥æ¥Ë¥³¡¼¥É¤ÏľÀÜ¥Õ¥©¥ó¥È¥·¥ó¥Ü¥ë¤Ë¥Þ¥Ã¥Ô¥ó¥°¤¹¤ë¤Î¤Ë
355 »È¤¨¤ë(¥«¡¼¥Í¥ë 1.3.1 °Ê¹ß)
356 .IP \fBGIO_UNIMAP\fP
357 .\"O Get Unicode-to-font mapping from kernel.
358 .\"O \fIargp\fP points to a
359 Unicode ¤«¤é¥Õ¥©¥ó¥È¤Ø¤Î¥Þ¥Ã¥Ô¥ó¥°¤ò¥«¡¼¥Í¥ë¤«¤é¼èÆÀ¤¹¤ë¡£
360 \fIargp\fP ¤Ï¡¢
361
362 .in +4n
363 .nf
364 struct unimapdesc {
365     unsigned short  entry_ct;
366     struct unipair *entries;
367 };
368 .fi
369 .in
370
371 ¤È¤¤¤¦¹½Â¤ÂΤò»Ø¤¹¡£
372 .\"O where \fIentries\fP points to an array of
373 ¤³¤³¤Ç \fIentries\fP ¤Ï¡¢
374
375 .in +4n
376 .nf
377 struct unipair {
378     unsigned short unicode;
379     unsigned short fontpos;
380 };
381 .fi
382 .in
383
384 ¤È¤¤¤¦¹½Â¤ÂΤÎÇÛÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
385 .\"O (Since 1.1.92.)
386 (¥«¡¼¥Í¥ë 1.1.92 °Ê¹ß)
387 .IP \fBPIO_UNIMAP\fP
388 .\"O Put unicode-to-font mapping in kernel.
389 .\"O \fIargp\fP points to a
390 .\"O \fIstruct unimapdesc\fP.
391 .\"O (Since 1.1.92)
392 Unicode ¤«¤é¥Õ¥©¥ó¥È¤Ø¤Î¥Þ¥Ã¥Ô¥ó¥°¤ò¥«¡¼¥Í¥ë¤Ë¥»¥Ã¥È¤¹¤ë¡£\fIargp\fP
393 ¤Ï¹½Â¤ÂΠ\fIstruct unimapdesc\fP ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£(¥«¡¼¥Í¥ë 1.1.92 °Ê¹ß)
394 .IP \fBPIO_UNIMAPCLR\fP
395 .\"O Clear table, possibly advise hash algorithm.
396 .\"O \fIargp\fP points to a
397 ¥Æ¡¼¥Ö¥ë¤ò¥¯¥ê¥¢¤·¡¢¤½¤Î»ö¤ò¥Ï¥·¥å¥¢¥ë¥´¥ê¥º¥à¤ËÅÁ¤¨¤ë¡£
398 \fIargp\fP¤Ï
399
400 .in +4n
401 .nf
402 struct unimapinit {
403     unsigned short advised_hashsize;  /* 0 if no opinion */
404     unsigned short advised_hashstep;  /* 0 if no opinion */
405     unsigned short advised_hashlevel; /* 0 if no opinion */
406 };
407 .fi
408 .in
409
410 ¤È¤¤¤¦¹½Â¤ÂΤò»Ø¤¹¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
411 .\"O (Since 1.1.92.)
412 (¥«¡¼¥Í¥ë 1.1.92 °Ê¹ß)
413 .IP \fBKDGKBMODE\fP
414 .\"O Gets current keyboard mode.
415 .\"O \fIargp\fP points to a \fIlong\fP which is set to one
416 .\"O of these:
417 ¸½ºß¤Î¥­¡¼¥Ü¡¼¥É¥â¡¼¥É¤ò¼èÆÀ¤¹¤ë¡£\fIargp\fP ¤Î»Ø¤¹ \fIlong\fP ·¿ÊÑ¿ô¤¬¡¢
418 ¼¡¤Î¤¦¤Á¤Î¤É¤ì¤«¤ËÀßÄꤵ¤ì¤ë¡£
419
420     K_RAW         0x00
421     K_XLATE       0x01
422     K_MEDIUMRAW   0x02
423     K_UNICODE     0x03
424 .IP \fBKDSKBMODE\fP
425 .\"O Sets current keyboard mode.
426 .\"O \fIargp\fP is a \fIlong\fP equal to one of the above values.
427 ¸½ºß¤Î¥­¡¼¥Ü¡¼¥É¥â¡¼¥É¤òÀßÄꤹ¤ë¡£
428 \fIargp\fP ¤Ï¾åµ­¤ÎÃͤΤ¦¤Á¤Î¤É¤ì¤«¤ËÅù¤·¤¤ \fIlong\fP ¤Ë¤¹¤ë¡£
429 .IP \fBKDGKBMETA\fP
430 .\"O Gets meta key handling mode.
431 .\"O \fIargp\fP points to a \fIlong\fP which is
432 .\"O set to one of these:
433 ¥á¥¿¥­¡¼¥Ï¥ó¥É¥ê¥ó¥°¥â¡¼¥É(meta key handling mode)¤ò¼èÆÀ¤¹¤ë¡£
434 \fIargp\fP ¤¬»Ø¤¹ \fIlong\fP ·¿ÊÑ¿ô¤Ï¡¢¼¡¤Î¤¦¤Á¤Î¤É¤ì¤«¤ËÀßÄꤵ¤ì¤ë¡£
435
436     K_METABIT     0x03   set high order bit
437     K_ESCPREFIX   0x04   escape prefix
438 .IP \fBKDSKBMETA\fP
439 .\"O Sets meta key handling mode.
440 .\"O \fIargp\fP is a \fIlong\fP equal to one of the above values.
441 ¥á¥¿¥­¡¼¥Ï¥ó¥É¥ê¥ó¥°¥â¡¼¥É¤òÀßÄꤹ¤ë¡£
442 \fIargp\fP ¤Ï¾åµ­¤ÎÃͤΤɤ줫¤ËÅù¤·¤¤ \fIlong\fP ¤Ë¤¹¤ë¡£
443 .IP \fBKDGKBENT\fP
444 .\"O Gets one entry in key translation table (keycode to action code).
445 .\"O \fIargp\fP points to a
446 ¥­¡¼¥³¡¼¥É¤ò¥¢¥¯¥·¥ç¥ó¥³¡¼¥É¤ËÊÑ´¹¤¹¤ë¥­¡¼ÊÑ´¹É½¤Î¥¨¥ó¥È¥ê¡¼¤Î°ì¤Ä¤ò
447 ¼èÆÀ¤¹¤ë¡£
448 \fIargp\fP ¤Ï¡¢
449
450 .in +4n
451 .nf
452 struct kbentry {
453     unsigned char  kb_table;
454     unsigned char  kb_index;
455     unsigned short kb_value;
456 };
457 .fi
458 .in
459
460 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
461 .\"O with the first two members filled in:
462 .\"O \fIkb_table\fP selects the key table (0 <= \fIkb_table\fP < MAX_NR_KEYMAPS),
463 .\"O and \fIkb_index\fP is the keycode (0 <= \fIkb_index\fP < NR_KEYS).
464 .\"O \fIkb_value\fP is set to the corresponding action code,
465 .\"O or K_HOLE if there is no such key,
466 .\"O or K_NOSUCHMAP if \fIkb_table\fP is invalid.
467 ºÇ½é¤Î2¤Ä¤ÎÍ×ÁÇ¡¢\fIkb_table\fP ¤Ë¤ÏÁªÂò¤¹¤ë¥­¡¼¥Æ¡¼¥Ö¥ë (0 <=
468 \fIkb_table\fP < MAX_NR_KEYMAPS)¡¢\fIkb_index\fP ¤Ë¤Ï¥­¡¼¥³¡¼¥É(0 <=
469 \fIkb_index\fP < NR_KEYS)¤òÀßÄꤹ¤ë¡£
470 \fIkb_value\fP ¤ÏÂбþ¤¹¤ë¥¢¥¯¥·¥ç¥ó¥³¡¼¥É¡¢¤Þ¤¿¤Ï¡¢¤½¤Î¤è¤¦¤Ê¥­¡¼¤¬
471 ¤Ê¤¤¤È¤­¤Ë¤Ï K_HOLE¡¢\fIkb_table\fP ¤¬Ìµ¸ú¤Ê»þ¤Ë¤Ï K_NOSUCHMAP ¤ËÀßÄꤵ¤ì¤ë¡£
472 .IP \fBKDSKBENT\fP
473 .\"O Sets one entry in translation table.
474 .\"O \fIargp\fP points to
475 .\"O a \fIstruct kbentry\fP.
476 ÊÑ´¹¥Æ¡¼¥Ö¥ë¤Î¥¨¥ó¥È¥ê¡¼¤Î°ì¤Ä¤òÀßÄꤹ¤ë¡£\fIargp\fP ¤Ï
477 ¹½Â¤ÂΠ\fIstruct kbentry\fP ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
478 .IP \fBKDGKBSENT\fP
479 .\"O Gets one function key string.
480 .\"O \fIargp\fP points to a
481 ¥Õ¥¡¥ó¥¯¥·¥ç¥ó¥­¡¼¤Îʸ»úÎó¤ò¼èÆÀ¤¹¤ë¡£\fIargp\fP ¤Ï¡¢
482
483 .in +4n
484 .nf
485 struct kbsentry {
486     unsigned char kb_func;
487     unsigned char kb_string[512];
488 };
489 .fi
490 .in
491
492 ¤È¤¤¤¦¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
493
494 .\"O \fIkb_string\fP is set to the (null-terminated) string corresponding to
495 .\"O the \fIkb_func\fPth function key action code.
496 \fIkb_func\fP ÈÖÌܤΥե¡¥ó¥¯¥·¥ç¥ó¥­¡¼¤Î¥¢¥¯¥·¥ç¥ó¥³¡¼¥É¤ËÂбþ¤¹¤ë
497 (NULL ¤Ç½ªÃ¼¤µ¤ì¤¿)ʸ»úÎ󤬠\fIkb_string\fP ¤ËÀßÄꤵ¤ì¤ë¡£
498 .IP \fBKDSKBSENT\fP
499 .\"O Sets one function key string entry.
500 .\"O \fIargp\fP points to
501 .\"O a \fIstruct kbsentry\fP.
502 ¥Õ¥¡¥ó¥¯¥·¥ç¥ó¥­¡¼¤Îʸ»úÎó¤Î¥¨¥ó¥È¥ê¡¼¤òÀßÄꤹ¤ë¡£\fIargp\fP ¤Ï¡¢
503 ¹½Â¤ÂΠ\fIstruct kbsentry\fP ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
504 .IP \fBKDGKBDIACR\fP
505 .\"O Read kernel accent table.
506 .\"O \fIargp\fP points to a
507 ¥«¡¼¥Í¥ë¤Î¥¢¥¯¥»¥ó¥È¥Æ¡¼¥Ö¥ë(accent table)¤òÆɤ߹þ¤à¡£\fIargp\fP¤Ï¡¢
508
509 .in +4n
510 .nf
511 struct kbdiacrs {
512     unsigned int   kb_cnt;
513     struct kbdiacr kbdiacr[256];
514 };
515 .fi
516 .in
517
518 ¤È¤¤¤¦¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
519 .\"O where \fIkb_cnt\fP is the number of entries in the array, each of which
520 .\"O is a
521 ¤³¤³¤Ç¡¢\fIkb_cnt\fP ¤ÏÇÛÎóÃæ¤Î¥¨¥ó¥È¥ê¡¼¤Î¸Ä¿ô¤Ç¡¢¸Ä¡¹¤Î¥¨¥ó¥È¥ê¡¼¤Ï¡¢
522
523 .in +4n
524 .nf
525 struct kbdiacr {
526     unsigned char diacr;
527     unsigned char base;
528     unsigned char result;
529 };
530 .fi
531 .in
532
533 ¤È¤¤¤¦¹½Â¤ÂΤǤ¢¤ë¡£
534 .IP \fBKDGETKEYCODE\fP
535 .\"O Read kernel keycode table entry (scan code to keycode).
536 .\"O \fIargp\fP points to a
537 ¥«¡¼¥Í¥ë¤Î(¥¹¥­¥ã¥ó¥³¡¼¥É¤«¤é¥­¡¼¥³¡¼¥É¤Ø
538 ÊÑ´¹¤¹¤ë)¥­¡¼¥³¡¼¥É¥Æ¡¼¥Ö¥ë¥¨¥ó¥È¥ê¡¼¤òÆɤ߹þ¤à¡£
539 \fIargp\fP ¤Ï¡¢
540
541 .in +4n
542 .nf
543 struct kbkeycode {
544     unsigned int scancode;
545     unsigned int keycode;
546 };
547 .fi
548 .in
549
550 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
551 .\"O \fIkeycode\fP is set to correspond to the given \fIscancode\fP.
552 .\"O (89 <= \fIscancode\fP <= 255 only.
553 .\"O For 1 <= \fIscancode\fP <= 88, \fIkeycode\fP==\fIscancode\fP.)
554 .\"O (Since 1.1.63.)
555 \fIkeycode\fP ¤Ï¡¢\fIscancode\fP ¤ËÂбþ¤·¤¿ÃͤËÀßÄꤵ¤ì¤ë¡£(¤¿¤À¤·¡¢89
556 <= \fIscancode\fP <= 255 ¤Î¤ß¤Ë¤Ä¤¤¤Æ¡£1 <= \fIscancode\fP <= 88 ¤Ç¤Ï
557 \fIkeycode\fP == \fIscancode\fP ¤Ç¤¢¤ë¡£)
558 (¥«¡¼¥Í¥ë 1.1.63 °Ê¹ß)
559 .IP \fBKDSETKEYCODE\fP
560 .\"O Write kernel keycode table entry.
561 .\"O \fIargp\fP points to
562 .\"O a \fIstruct kbkeycode\fP.
563 .\"O (Since 1.1.63.)
564 ¥«¡¼¥Í¥ë¤Î¥­¡¼¥³¡¼¥É¥Æ¡¼¥Ö¥ë¥¨¥ó¥È¥ê¡¼¤ò½ñ¤­¹þ¤à¡£\fIargp\fP ¤Ï¹½Â¤ÂÎ
565 \fIstruct kbkeycode\fP ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
566 (¥«¡¼¥Í¥ë 1.1.63 °Ê¹ß)
567 .IP \fBKDSIGACCEPT\fP
568 .\"O The calling process indicates its willingness to accept the signal
569 .\"O \fIargp\fP when it is generated by pressing an appropriate key combination.
570 .\"O (1 <= \fIargp\fP <= NSIG).
571 .\"O (See spawn_console() in linux/drivers/char/keyboard.c.)
572 ¤³¤Î´Ø¿ô¸Æ¤Ó½Ð¤·¤Ï¡¢ÆÃÊ̤ÊÁȹ礻¤Ç¥­¡¼¤ò²¡¤·¤¿»þ¤ËȯÀ¸¤¹¤ë¥·¥°¥Ê¥ë
573 \fIargp\fP (1 <= \fIargp\fP <= NSIG) ¤ò¿Ê¤ó¤Ç¼õ¤±ÉÕ¤±¤ë¤«¤É¤¦¤«¤ò¼¨¤¹¡£
574 (linux/drivers/char/keyboard.c ¤Î Spawn_console() ¤ò¸«¤è¡£)
575 .IP \fBVT_OPENQRY\fP
576 .\"O Returns the first available (non-opened) console.
577 .\"O \fIargp\fP points to an \fIint\fP which is set to the
578 .\"O number of the vt (1 <= \fI*argp\fP <= MAX_NR_CONSOLES).
579 ºÇ½é¤Î¶õ¤¤¤Æ¤¤¤ë(¤Þ¤À¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤Ê¤¤)¥³¥ó¥½¡¼¥ë¤òÊÖ¤¹¡£
580 \fIargp\fP ¤Î»Ø¤¹ \fIint\fP ·¿¤ÎÀ°¿ô¤Ë¤Ï¡¢vt ¤ÎÈֹ椬¥»¥Ã¥È¤µ¤ì¤ë
581 (1 <= \fI*argp\fP <= MAX_NR_CONSOLES)¡£
582 .IP \fBVT_GETMODE\fP
583 .\"O Get mode of active vt.
584 .\"O \fIargp\fP points to a
585 ¥¢¥¯¥Æ¥£¥Ö¤Ê vt ¤Î¥â¡¼¥É¤ò¼èÆÀ¤¹¤ë¡£\fIargp\fP¤Ï¡¢
586
587 .in +4n
588 .nf
589 struct vt_mode {
590    char mode;     /* vt mode */
591    char waitv;    /* if set, hang on writes if not active */
592    short relsig;  /* signal to raise on release req */
593    short acqsig;  /* signal to raise on acquisition */
594    short frsig;   /* unused (set to 0) */
595 };
596 .fi
597 .in
598
599 .\"O which is set to the mode of the active vt.
600 .\"O \fImode\fP is set to one of these values:
601 ¤È¤¤¤¦¹½Â¤ÂΤò»Ø¤¹¥Ý¥¤¥ó¥¿¤Ç¤¢¤ê¡¢¥¢¥¯¥Æ¥£¥Ö¤Ê vt ¤Î¥â¡¼¥É¤¬
602 ¥»¥Ã¥È¤µ¤ì¤ë¡£
603 \fImode\fP ¤Ï¼¡¤Î¤É¤ì¤«¤ËÀßÄꤵ¤ì¤ë¡§
604
605 .\"O     VT_AUTO       auto vt switching
606 .\"O     VT_PROCESS    process controls switching
607 .\"O     VT_ACKACQ     acknowledge switch
608    VT_AUTO       ¼«Æ°vtÀÚÂؤ¨
609    VT_PROCESS    ¥×¥í¥»¥¹¥³¥ó¥È¥í¡¼¥ëÀÚÂؤ¨
610    VT_ACKACQ     ¥¢¥¯¥Î¥ê¥Ã¥¸ÀÚÂؤ¨
611 .IP \fBVT_SETMODE\fP
612 .\"O Set mode of active vt.
613 .\"O \fIargp\fP points to
614 .\"O a \fIstruct vt_mode\fP.
615 ¥¢¥¯¥Æ¥£¥Ö¤Ê vt ¤Î¥â¡¼¥É¤òÀßÄꤹ¤ë¡£\fIargp\fP ¤Ï¹½Â¤ÂÎ
616 \fIstruct vt_mode\fP ¤Ø¤Î
617 ¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
618 .IP \fBVT_GETSTATE\fP
619 .\"O Get global vt state info.
620 .\"O \fIargp\fP points to a
621 ¥°¥í¡¼¥Ð¥ë¤Ê vt ¤Î¾õÂ֤ξðÊó¤ò¼èÆÀ¤¹¤ë¡£\fIargp\fP¤Ï¡¢
622
623 .in +4n
624 .nf
625 struct vt_stat {
626    unsigned short v_active;  /* active vt */
627    unsigned short v_signal;  /* signal to send */
628    unsigned short v_state;   /* vt bit mask */
629 };
630 .fi
631 .in
632
633 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
634 .\"O For each vt in use, the corresponding bit in the \fIv_state\fP member is set.
635 .\"O (Kernels 1.0 through 1.1.92.)
636 »ÈÍѤµ¤ì¤Æ¤¤¤ë¤½¤ì¤¾¤ì¤Î vt ¤Ë¤Ä¤­ \fIv_state\fP ¤ÎÂбþ¤¹¤ë¥Ó¥Ã¥È¤¬
637 ¥»¥Ã¥È¤µ¤ì¤ë¡£
638 (¥«¡¼¥Í¥ël 1.0 ¤«¤é 1.1.92 ¤Þ¤Ç)
639 .IP \fBVT_RELDISP\fP
640 .\"O Release a display.
641 ¥Ç¥£¥¹¥×¥ì¡¼¤ò²òÊü¤¹¤ë¡£
642 .IP \fBVT_ACTIVATE\fP
643 .\"O Switch to vt \fIargp\fP (1 <= \fIargp\fP <= MAX_NR_CONSOLES).
644 \fIargp\fP (1 <= \fIargp\fP <= MAX_NR_CONSOLES)¤Î vt ¤ËÀÚÂؤ¨¤ë¡£
645 .IP \fBVT_WAITACTIVE\fP
646 .\"O Wait until vt \fIargp\fP has been activated.
647 \fIargp\fP¤Î vt ¤¬¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ê¤ë¤Þ¤ÇÂԤġ£
648 .IP \fBVT_DISALLOCATE\fP
649 .\"O Deallocate the memory associated with vt \fIargp\fP.
650 .\"O (Since 1.1.54.)
651 \fIargp\fP ¤Î vt ¤Ë·ë¤Ó¤Ä¤±¤é¤ì¤¿¥á¥â¥ê¡¼¤ò²òÊü¤¹¤ë¡£
652 (¥«¡¼¥Í¥ë 1.1.54 °Ê¹ß)
653 .IP \fBVT_RESIZE\fP
654 .\"O Set the kernel's idea of screensize.
655 .\"O \fIargp\fP points to a
656 ¥«¡¼¥Í¥ë¤¬Ç§¼±¤¹¤ë¥¹¥¯¥ê¡¼¥ó¥µ¥¤¥º¤òÀßÄꤹ¤ë¡£\fIargp\fP ¤Ï¡¢
657
658 .in +4n
659 .nf
660 struct vt_sizes {
661    unsigned short v_rows;       /* # rows */
662    unsigned short v_cols;       /* # columns */
663    unsigned short v_scrollsize; /* no longer used */
664 };
665 .fi
666 .in
667
668 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
669 .\"O Note that this does not change the videomode.
670 .\"O See
671 .\"O .BR resizecons (8).
672 .\"O (Since 1.1.54.)
673 ¤³¤ì¤Ï¥Ó¥Ç¥ª¥â¡¼¥É¤òÊѹ¹¤·¤Ê¤¤»ö¤ËÃí°Õ¡£
674 .BR resizecons (8)
675 ¤ò¸«¤è(¥«¡¼¥Í¥ë 1.1.54 °Ê¹ß)¡£
676 .IP \fBVT_RESIZEX\fP
677 .\"O Set the kernel's idea of various screen parameters.
678 .\"O \fIargp\fP points to a
679 ¥«¡¼¥Í¥ë¤¬Ç§¼±¤¹¤ë³Æ¼ï¤Î¥¹¥¯¥ê¡¼¥ó¥Ñ¥é¥á¡¼¥¿¤òÀßÄꤹ¤ë¡£\fIargp\fP ¤Ï¡¢
680
681 .in +4n
682 .nf
683 struct vt_consize {
684     unsigned short v_rows;  /* number of rows */
685     unsigned short v_cols;  /* number of columns */
686     unsigned short v_vlin;  /* number of pixel rows
687                                on screen */
688     unsigned short v_clin;  /* number of pixel rows
689                                per character */
690     unsigned short v_vcol;  /* number of pixel columns
691                                on screen */
692     unsigned short v_ccol;  /* number of pixel columns
693                                per character */
694 };
695 .fi
696 .in
697
698 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ë¡£
699
700 .\"O Any parameter may be set to zero, indicating "no change", but if
701 .\"O multiple parameters are set, they must be self-consistent.
702 .\"O Note that this does not change the videomode.
703 .\"O See
704 .\"O .BR resizecons (8).
705 .\"O (Since 1.3.3.)
706 ¥Ñ¥é¥á¡¼¥¿¤Ï¥¼¥í¤Ç¤¢¤Ã¤Æ¤â¤è¤¤¡£¤½¤Î¤È¤­¤Ï¡ÖÊѹ¹¤·¤Ê¤¤¤³¤È¡×¤ò
707 °ÕÌ£¤¹¤ë¤¬¡¢Ê£¿ô¤Î¥Ñ¥é¥á¡¼¥¿¤¬ÀßÄꤵ¤ì¤¿»þ¤Ë¤Ï¤½¤ì¤é¤Î´Ö¤ÇÌ·½â¤¬
708 ¤Ê¤¤¤è¤¦¤Ë¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
709 ¤³¤Î´Ø¿ô¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ¤â¥Ó¥Ç¥ª¥â¡¼¥É¤ÏÊѹ¹¤µ¤ì¤Ê¤¤»ö¤ËÃí°Õ¡£
710 .BR resizecons (8)
711 ¤ò»²¾È¤Î»ö(¥«¡¼¥Í¥ë 1.3.3 °Ê¹ß)¡£
712 .PP
713 .\"O The action of the following ioctls depends on the first byte in the struct
714 .\"O pointed to by \fIargp\fP, referred to here as the \fIsubcode\fP.
715 .\"O These are legal only for the superuser or the owner of the current tty.
716 °Ê²¼¤Î ioctl ¤¬¤É¤Î¤è¤¦¤ËÆ°ºî¤ò¤¹¤ë¤«¤Ï¡¢\fIargp\fP ¤¬»Ø¤¹¹½Â¤ÂΤÎ
717 ºÇ½é¤Î¥Ð¥¤¥È(¤³¤³¤Ç¤Ï \fIsubcode\fP ¤È¸Æ¤Ö)¤Ë°Í¸¤¹¤ë¡£
718 ¤³¤ì¤é¤Î¸Æ½Ð¤·¤Ï¡¢¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¤«¸½ºß¤Î tty ¤Î¥ª¡¼¥Ê¤Ë¤Î¤ßµö¤µ¤ì¤ë¡£
719 .IP "\fBTIOCLINUX, subcode=0\fP"
720 .\"O Dump the screen.
721 .\"O Disappeared in 1.1.92.  (With kernel 1.1.92 or later, read from
722 .\"O /dev/vcsN or /dev/vcsaN instead.)
723 ¥¹¥¯¥ê¡¼¥ó¤ò¥À¥ó¥×(dump)¤¹¤ë
724 ¥«¡¼¥Í¥ë 1.1.92 °Ê¹ß¤Ç¤Ê¤¯¤Ê¤Ã¤¿(1.1.92 °Ê¹ß¤Ç¤Ï¡¢Âå¤ï¤ê¤Ë /dev/vcsN
725 ¤Þ¤¿¤Ï /dev/vcsaN ¤è¤êÆɤ߹þ¤à)¡£
726 .IP "\fBTIOCLINUX, subcode=1\fP"
727 .\"O Get task information.
728 .\"O Disappeared in 1.1.92.
729 ¥¿¥¹¥¯¾ðÊó¤ò¼èÆÀ¤¹¤ë¡£¥«¡¼¥Í¥ë 1.1.92 ¤Ç¤Ê¤¯¤Ê¤Ã¤¿¡£
730 .IP "\fBTIOCLINUX, subcode=2\fP"
731 .\"O Set selection.
732 .\"O \fIargp\fP points to a
733 ÁªÂò¤òÀßÄꤹ¤ë¡£
734 \fIargp\fP ¤¬»Ø¤¹¤Î¤Ï¡¢
735 .in +4n
736 .nf
737
738 struct {
739    char subcode;
740    short xs, ys, xe, ye;
741    short sel_mode;
742 }
743
744 .fi
745 .in
746 .\"O \fIxs\fP and \fIys\fP are the starting column and row.
747 .\"O \fIxe\fP and \fIye\fP are the ending
748 .\"O column and row.
749 .\"O (Upper left corner is row=column=1.)
750 .\"O \fIsel_mode\fP is 0 for character-by-character selection,
751 .\"O 1 for word-by-word selection,
752 .\"O or 2 for line-by-line selection.
753 .\"O The indicated screen characters are highlighted and saved
754 .\"O in the static array sel_buffer in devices/char/console.c.
755 ¤Ç¤¢¤ê¡¢¤³¤³¤Ç
756 \fIxs\fP ¤È \fIys\fP ¤Ï»Ï¤á¤Î·å¤È¹Ô¤Ç¡¢\fIxe\fP ¤È \fIye\fP ¤Ï½ª¤ê¤Î·å¤È
757 ¹Ô¤Ç¤¢¤ë¡£
758 (º¸¾å¤Î¶ù¤¬ ·å=¹Ô=1 )
759 \fIsel_mode\fP ¤Ï 0 ¤¬Ê¸»úËè¤ÎÁªÂò¤Ç¡¢1¤Ï¸ìËè¤ÎÁªÂò¡¢2¤Ï¹ÔËè¤ÎÁªÂò¤ò
760 °ÕÌ£¤¹¤ë¡£
761 ¼¨¤µ¤ì¤¿¥¹¥¯¥ê¡¼¥ó¾å¤Îʸ»ú¤Ï¥Ï¥¤¥é¥¤¥Èɽ¼¨¤µ¤ì devices/char/console.c ¤Î
762 ÀÅŪÇÛÎó sel_buffer ¤ËÊݸ¤µ¤ì¤ë¡£
763 .IP "\fBTIOCLINUX, subcode=3\fP"
764 .\"O Paste selection.
765 .\"O The characters in the selection buffer are
766 .\"O written to \fIfd\fP.
767 ÁªÂò¤·¤¿¤â¤Î¤ò¥Ú¡¼¥¹¥È¤¹¤ë¡£
768 ÁªÂò¥Ð¥Ã¥Õ¥¡Ãæ¤Îʸ»ú ¤¬ \fIfd\fP ¤Ë½ñ¤­½Ð¤µ¤ì¤ë¡£
769 .IP "\fBTIOCLINUX, subcode=4\fP"
770 .\"O Unblank the screen.
771 ¥¹¥¯¥ê¡¼¥ó¤ò¥¢¥ó¥Ö¥é¥ó¥¯(unblank)¤¹¤ë¡£
772 .IP "\fBTIOCLINUX, subcode=5\fP"
773 .\"O Sets contents of a 256-bit look up table defining characters in a "word",
774 .\"O for word-by-word selection.
775 .\"O (Since 1.1.32.)
776 ¸ìËè¤ÎÁªÂò¤Î¤¿¤á¤Î¡Ö¸ì¡×Ãæ¤Îʸ»ú¤òµ¬Äꤷ¤Æ¤¤¤ë 256 ¥Ó¥Ã¥È¤Î¥ë¥Ã¥¯¥¢¥Ã¥×
777 ¥Æ¡¼¥Ö¥ë¤ÎÆâÍƤòÀßÄꤹ¤ë(¥«¡¼¥Í¥ë 1.1.32 °Ê¹ß)¡£
778 .IP "\fBTIOCLINUX, subcode=6\fP"
779 .\"O \fIargp\fP points to a char which is set to the value of the kernel
780 .\"O variable \fIshift_state\fP.
781 .\"O (Since 1.1.32.)
782 \fIargp\fP ¤Ïʸ»úÊÑ¿ô¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤Ç¡¢¤½¤ÎÆâÍƤ¬¥«¡¼¥Í¥ëÊÑ¿ô
783 \fIshift_state\fP¤ÎÃͤËÀßÄꤵ¤ì¤ë(¥«¡¼¥Í¥ë 1.1.32 °Ê¹ß)¡£
784 .IP "\fBTIOCLINUX, subcode=7\fP"
785 .\"O \fIargp\fP points to a char which is set to the value of the kernel
786 .\"O variable \fIreport_mouse\fP.
787 .\"O (Since 1.1.33.)
788 \fIargp\fP ¤Ïʸ»úÊÑ¿ô¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤Ç¡¢¤½¤ÎÆâÍƤ¬¥«¡¼¥Í¥ëÊÑ¿ô
789 \fIreport_mouse\fP ¤ÎÃͤËÀßÄꤵ¤ì¤ë(¥«¡¼¥Í¥ë 1.1.33 °Ê¹ß)¡£
790 .IP "\fBTIOCLINUX, subcode=8\fP"
791 .\"O Dump screen width and height, cursor position, and all the
792 .\"O character-attribute pairs.
793 .\"O (Kernels 1.1.67 through 1.1.91 only.
794 .\"O With kernel 1.1.92 or later, read from /dev/vcsa* instead.)
795 ¥¹¥¯¥ê¡¼¥óÉý¡¢¥¹¥¯¥ê¡¼¥ó¹â¤µ¡¢¥«¡¼¥½¥ë°ÌÃÖ¡¢Á´¤Æ¤Îʸ»ú°À­¤ÎÁȤò¥À¥ó¥×¤¹¤ë
796 (¥«¡¼¥Í¥ë 1.1.67 ¤«¤é 1.1.91¤Þ¤Ç¤Î¤ß¡£
797 ¥«¡¼¥Í¥ë 1.1.92 °Ê¹ß¤Ç¤Ï /dev/vcsa*¤è¤êÆɤ߹þ¤à)¡£
798 .IP "\fBTIOCLINUX, subcode=9\fP"
799 .\"O Restore screen width and height, cursor position, and all the
800 .\"O character-attribute pairs.
801 .\"O (Kernels 1.1.67 through 1.1.91 only.
802 .\"O With kernel 1.1.92 or later, write to /dev/vcsa* instead.)
803 ¥¹¥¯¥ê¡¼¥óÉý¡¢¥¹¥¯¥ê¡¼¥ó¹â¤µ¡¢¥«¡¼¥½¥ë°ÌÃÖ¡¢Á´¤Æ¤Îʸ»ú°À­¤ÎÁȤòÉü¸µ¤¹¤ë
804 (¥«¡¼¥Í¥ë 1.1.67 ¤«¤é 1.1.91 ¤Þ¤Ç¤Î¤ß¡£
805 ¥«¡¼¥Í¥ë 1.1.92 °Ê¹ß¤Ç¤Ï /dev/vcsa* ¤Ë½ñ¤­¹þ¤à)¡£
806 .IP "\fBTIOCLINUX, subcode=10\fP"
807 .\"O Handles the Power Saving
808 .\"O feature of the new generation of monitors.
809 .\"O VESA screen blanking mode is set to \fIargp\fP[1], which governs what
810 .\"O screen blanking does:
811 ¿·À¤Âå¥â¥Ë¥¿¡¼¤Î¥Ñ¥ï¡¼¥»¡¼¥Öµ¡Ç½¤òÀ©¸æ¤¹¤ë¡£
812 VESA ¥¹¥¯¥ê¡¼¥ó¥Ö¥é¥ó¥­¥ó¥°¥â¡¼¥É¤¬ \fIargp\fP[1]¤ËÀßÄꤵ¤ì¤ë¡£
813 ¤½¤ÎÃͤϥ¹¥¯¥ê¡¼¥ó¥Ö¥é¥ó¥­¥ó¥°¤¬¤É¤Î¤è¤¦¤Ë¹Ô¤ï¤ì¤ë¤«¤ò¼¨¤¹¡£°Ê²¼¤¬¤½¤Î
814 ÃͤǤ¢¤ë¡£
815
816 .\"O     \fI0\fP: Screen blanking is disabled.
817         \fI0\fP: ¥¹¥¯¥ê¡¼¥ó¥Ö¥é¥ó¥­¥ó¥°¤Ê¤·¡£
818
819 .\"O     \fI1\fP: The current video adapter
820 .\"O register settings are saved, then the controller is programmed to turn off
821 .\"O the vertical synchronization pulses.
822 .\"O This puts the monitor into "standby" mode.
823 .\"O If your monitor has an Off_Mode timer, then
824 .\"O it will eventually power down by itself.
825         \fI1\fP:¸½ºß¤Î¥Ó¥Ç¥ª¥¢¥À¥×¥¿¡¼¥ì¥¸¥¹¥¿¤¬Êݸ¤µ¤ì¤¿¤¢¤È¡¢
826 ¥³¥ó¥È¥í¡¼¥é¤Ï¿âľƱ´ü¥Ñ¥ë¥¹¤ò¥ª¥Õ¤Ë¤¹¤ë¤è¤¦¥×¥í¥°¥é¥à¤µ¤ì¤ë¡£¤³¤ì¤Ë¤è¤ê
827 ¥â¥Ë¥¿¡¼¤Ï¡Ö¥¹¥¿¥ó¥Ð¥¤¡×¥â¡¼¥É¤Ë¤Ï¤¤¤ë¡£
828 ¥â¥Ë¥¿¡¼¤Ë Off_Mode ¥¿¥¤¥Þ¤¬È÷¤ï¤Ã¤Æ¤ª¤ì¤Ð¡¢ºÇ½ªÅª¤Ë¤Ï¥â¥Ë¥¿¡¼¤¬¼«Ê¬¤Ç
829 ÅŸ»¤òÍ¡£
830
831 .\"O     \fI2\fP: The current
832 .\"O settings are saved, then both the vertical and horizontal
833 .\"O synchronization pulses are turned off.
834 .\"O This puts the monitor into "off" mode.
835 .\"O If your monitor has no Off_Mode timer,
836 .\"O or if you want your monitor to power down immediately when the
837 .\"O blank_timer times out, then you choose this option.
838 .\"O (\fICaution:\fP Powering down frequently will damage the monitor.)
839         \fI2\fP:¸½ºß¤ÎÀßÄê¤òÊݸ¤·¤¿¸å¡¢¿âľ¡¢¿åʿƱ´ü¥Ñ¥ë¥¹¤¬¥ª¥Õ¤Ë¤Ê¤ë¡£
840 ¤³¤ì¤Ë¤è¤ê¥â¥Ë¥¿¡¼¤Ï¡Ö¥ª¥Õ¡×¥â¡¼¥É¤Ë¤Ê¤ë¡£
841 ¥â¥Ë¥¿¡¼¤Ë Off_Mode ¥¿¥¤¥Þ¡¼¤¬¤Ê¤¤»þ¡¢¤Þ¤¿¤Ï¡¢blank_timer ¤¬¥¿¥¤¥à¥¢¥¦¥È¤·¤¿¤é
842 ¤¹¤°¤Ë¥â¥Ë¥¿¡¼¤ÎÅŸ»¤òÍ¤¿¤¤¤È¤­¤Ë¤³¤ÎÁªÂò»è¤òÁª¤Ö¡£
843 (Ãí°Õ¡§ÉÑÈˤ˥â¥Ë¥¿¡¼¤ÎÅŸ»¤òÀÚ¤ë¤È¥â¥Ë¥¿¡¼¤òÄˤá¤ë¡£)
844
845 .\"O (Since 1.1.76.)
846 (¥«¡¼¥Í¥ë 1.1.76 °Ê¹ß)
847
848 .\"O .SH "RETURN VALUE"
849 .SH Ìá¤êÃÍ
850 .\"O On success, 0 is returned.
851 .\"O On error \-1 is returned, and \fIerrno\fP is set.
852 À®¸ù»þ¤Ë¤Ï 0 ¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤ËÂФ·¤Æ¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
853 \fIerrno\fP ¤¬ÀßÄꤵ¤ì¤ë¡£
854 .\"O .SH ERRORS
855 .SH ¥¨¥é¡¼
856 .\"O \fIerrno\fP may take on these values:
857 \fIerrno\fP ¤Ï¼¡¤Î¤è¤¦¤ÊÃͤò¤È¤ë:
858 .TP
859 .B EBADF
860 .\"O The file descriptor is invalid.
861 ¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤¬Ìµ¸ú¡£
862 .TP
863 .B ENOTTY
864 .\"O The file descriptor is not associated with a character special device,
865 .\"O or the specified request does not apply to it.
866 ¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤¬¥­¥ã¥é¥¯¥¿¡¦¥¹¥Ú¥·¥ã¥ë¥Ç¥Ð¥¤¥¹¤È´ØÏ¢ÉÕ¤±¤é¤ì¤Æ
867 ¤¤¤Ê¤¤¡£¤Þ¤¿¤Ï¡¢Í׵ᤵ¤ì¤¿¤â¤Î¤¬¤½¤ì¤ËÅö¤Æ¤Ï¤Þ¤é¤Ê¤¤¡£
868 .TP
869 .B EINVAL
870 .\"O The file descriptor or \fIargp\fP is invalid.
871 ¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Þ¤¿¤Ï \fIargp\fP ¤¬Ìµ¸ú¡£
872 .TP
873 .B EPERM
874 .\"O Insufficient permission.
875 ¸¢¸Â¤¬ÉÔ½½Ê¬¡£
876
877 .\"O .SH NOTES
878 .SH Ãí°Õ
879 .\"O .BR Warning :
880 .\"O Do not regard this man page as documentation of the Linux console ioctl's.
881 .\"O This is provided for the curious only, as an alternative to reading the
882 .\"O source.
883 .\"O Ioctl's are undocumented Linux internals, liable to be changed
884 .\"O without warning.
885 .\"O (And indeed, this page more or less describes the
886 .\"O situation as of kernel version 1.1.94;
887 .\"O there are many minor and not-so-minor
888 .\"O differences with earlier versions.)
889 .BR ·Ù¹ð :
890 ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò Linux ¤Î¥³¥ó¥½¡¼¥ë ioctl ¤òʸ½ñ²½¤·¤¿¤â¤Î¤È»×¤ï¤Ê¤¤»ö¡£
891 ¤³¤ì¤Ï¡¢¶½Ì£¤¬¤¢¤ë¿Í¤¬¥½¡¼¥¹¤òÆɤळ¤È¤ÎÂå¤ï¤ê¤Ë¤Ê¤ë¤è¤¦¤ËÍÑ°Õ¤·¤¿Êª¤Ç¤¢¤ë¡£
892 ioctl ¤Ïʸ½ñ²½¤µ¤ì¤Ê¤¤ Linux ¤ÎÆâÉôµ¡Ç½¤Ç¤¢¤Ã¤Æ¡¢·Ù¹ð¤Ê¤·¤Ë
893 Êѹ¹¤µ¤ì¤ë¤³¤È¤¬¤¢¤ë¡£
894 (¤½¤·¤Æ¡¢¤³¤Î¥Ú¡¼¥¸¤Ï¥«¡¼¥Í¥ë 1.1.94 ¤Î¤È¤­¤Î¾õ¶·¤òµ­½Ò¤·¤¿Êª¤Ç¡¢¤½¤ì¤Ï
895 °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤ÈÈæ¤Ù¤ì¤Ð¡¢Â¿¤¯¤Î°ã¤¤¤¬¤¢¤ë)
896
897 .\"O Very often, ioctl's are introduced for communication between the
898 .\"O kernel and one particular well-known program (fdisk, hdparm, setserial,
899 .\"O tunelp, loadkeys, selection, setfont, etc.), and their behavior will be
900 .\"O changed when required by this particular program.
901 ioctl ¤Ï¥«¡¼¥Í¥ë¤È¡¢¤¢¤ëÆÃÄê¤Î¤è¤¯ÃΤé¤ì¤¿¥×¥í¥°¥é¥à¤È¤Î¾ðÊó¸ò´¹¤Î¤¿¤á¤Ë
902 ƳÆþ¤µ¤ì¤ë»ö¤¬Èó¾ï¤Ë¿¤¤(fdisk, hdparm, setserial,tunelp, loadkeys,
903 selection, setfont ¤Ê¤É)¡£¤½¤Î¤¿¤á ioctl ¤ÎÆ°ºî¤Ï¡¢¤½¤ÎÆÃÄê¤Î¥×¥í¥°¥é¥à¤¬
904 ɬÍפȤ·¤¿»þ¤Ë¤ÏÊѹ¹¤Ë¤Ê¤ë¡£
905
906 .\"O Programs using these ioctl's will not be portable to other versions
907 .\"O of Unix, will not work on older versions of Linux, and will not work
908 .\"O on future versions of Linux.
909 ¤³¤ì¤é¤Î ioctl ¤ò»È¤Ã¤¿¥×¥í¥°¥é¥à¤Ï¾¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Unix ¤È¤Î¸ß´¹À­¤¬
910 ¤Ê¤¤¤·¡¢¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Î Linux ¤Ç¤Ï¡¢Áö¤é¤Ê¤¤¡£¤µ¤é¤Ë¾­Íè¤Î¥Ð¡¼¥¸¥ç¥ó¤Î
911 Linux ¤Ç¤ÏÁö¤é¤Ê¤¯¤Ê¤ë¤«¤âÃΤì¤Ê¤¤¡£
912
913 .\"O Use POSIX functions.
914 POSIX µ¡Ç½¤ò»È¤¤¤Ê¤µ¤¤¡£
915 .\"O .SH "SEE ALSO"
916 .SH ´ØÏ¢¹àÌÜ
917 .BR dumpkeys (1),
918 .BR kbd_mode (1),
919 .BR loadkeys (1),
920 .BR mknod (1),
921 .BR setleds (1),
922 .BR setmetamode (1),
923 .BR execve (2),
924 .BR fcntl (2),
925 .BR ioperm (2),
926 .BR termios (3),
927 .BR console (4),
928 .BR console_codes (4),
929 .BR mt (4),
930 .BR sd (4),
931 .BR tty (4),
932 .BR tty_ioctl (4),
933 .BR ttyS (4),
934 .BR vcs (4),
935 .BR vcsa (4),
936 .BR charsets (7),
937 .BR mapscrn (8),
938 .BR resizecons (8),
939 .BR setfont (8),
940 .IR /usr/include/linux/kd.h ,
941 .I /usr/include/linux/vt.h