OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / ioperm.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 1993 Michael Haardt
4 .\" (michael@moria.de)
5 .\" Fri Apr  2 11:32:09 MET DST 1993
6 .\"
7 .\" This is free documentation; you can redistribute it and/or
8 .\" modify it under the terms of the GNU General Public License as
9 .\" published by the Free Software Foundation; either version 2 of
10 .\" the License, or (at your option) any later version.
11 .\"
12 .\" The GNU General Public License's references to "object code"
13 .\" and "executables" are to be interpreted as the output of any
14 .\" document formatting or typesetting system, including
15 .\" intermediate and printed output.
16 .\"
17 .\" This manual is distributed in the hope that it will be useful,
18 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
19 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 .\" GNU General Public License for more details.
21 .\"
22 .\" You should have received a copy of the GNU General Public
23 .\" License along with this manual; if not, write to the Free
24 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
25 .\" USA.
26 .\"
27 .\" Modified Sat Jul 24 15:12:05 1993 by Rik Faith <faith@cs.unc.edu>
28 .\" Modified Tue Aug  1 16:27    1995 by Jochen Karrer
29 .\"                              <cip307@cip.physik.uni-wuerzburg.de>
30 .\" Modified Tue Oct 22 08:11:14 EDT 1996 by Eric S. Raymond <esr@thyrsus.com>
31 .\" Modified Mon Feb 15 17:28:41 CET 1999 by Andries E. Brouwer <aeb@cwi.nl>
32 .\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
33 .\"     Added notes on capability requirements
34 .\"
35 .\" Japanese Version Copyright (c) 1997 HORIMOTO Masafumi
36 .\"         all rights reserved.
37 .\" Translated 1997-09-11, HORIMOTO Masafumi
38 .\" Modified 1999-04-03, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
39 .\" Updated 2003-10-12, Kentaro Shirakata <argrath@ub32.org>
40 .\" Updated 2005-02-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
41 .\" Updated 2007-01-07, Akihiro MOTOKI, catch up to LDP v2.43
42 .\"
43 .TH IOPERM 2 2007-06-15 "Linux" "Linux Programmer's Manual"
44 .SH Ì¾Á°
45 ioperm \- ¥Ý¡¼¥È¤ÎÆþ½ÐÎϵö²Ä¤òÀßÄꤹ¤ë
46 .SH ½ñ¼°
47 .B #include <unistd.h>
48 /* for libc5 */
49 .br
50 .B #include <sys/io.h>
51 /* for glibc */
52 .sp
53 .BI "int ioperm(unsigned long " from ", unsigned long " num ", int " turn_on );
54 .SH ÀâÌÀ
55 .BR ioperm ()
56 ¤Ï¡¢°ú¤­¿ô \fIfrom\fP ¤Î I/O ¥Ý¡¼¥È¥¢¥É¥ì¥¹¤«¤é
57 \fInum\fP ¥Ð¥¤¥Èʬ¤ÎÎΰè¤ËÂФ¹¤ë¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
58 ¥¢¥¯¥»¥¹µö²Ä¥Ó¥Ã¥È¤ò¡¢\fIturn_on\fP ¤ËÀßÄꤹ¤ë¡£
59 \fIturn_on\fP ¤¬ 0 °Ê³°¤Î¾ì¹ç¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤ÏÆø¢
60 .RB ( CAP_SYS_RAWIO )
61 ¤ò»ý¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
62
63 .\" FIXME is the following ("Only the first 0x3ff I/O ports can be
64 .\" specified in this manner") still true?  Looking at changes in
65 .\" include/asm-i386/processor.h between 2.4 and 2.6 suggests
66 .\" that the limit is different in 2.6.
67 ¤³¤ÎÊýË¡¤ÇÀßÄê¤Ç¤­¤ë¤Î¤Ï 0x3ff ÈÖÃϤޤǤΠI/O¥Ý¡¼¥È¤Ë¸Â¤é¤ì¤ë¡£
68 ¤³¤ì¤è¤ê¤âÂ礭¤Ê¥¢¥É¥ì¥¹¤Î¥Ý¡¼¥È¤ËÂФ·¤Æ¤Ï
69 .BR iopl (2)
70 ´Ø¿ô¤ò»È¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
71
72 ¥¢¥¯¥»¥¹¸¢¤Ï
73 .BR fork (2)
74 ¤ÇºîÀ®¤µ¤ì¤¿»Ò¥×¥í¥»¥¹¤Ë¤Ï·Ñ¾µ¤µ¤ì¤Ê¤¤¡£
75 .BR execve (2)
76 ¤ÎÁ°¸å¤Ç¥¢¥¯¥»¥¹¸¢¤ÏÊݸ¤µ¤ì¤ë¡£¤³¤Îµ¡Ç½¤Ï
77 ÈóÆø¢¥×¥í¥°¥é¥à¤Ë¥Ý¡¼¥È¤Ø¤Î¥¢¥¯¥»¥¹¸¢¤ò
78 Í¿¤¨¤ë¤Î¤Ë»ÈÍѤǤ­¤ë¡£
79
80 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¤Û¤È¤ó¤É i386 ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Î¤¿¤á¤À¤±¤Î¤â¤Î¤Ç¤¢¤ë¡£
81 ¤½¤Î¾¤Î¿¤¯¤Î¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ç¤Ï¸ºß¤·¤Ê¤¤¤«¡¢¾ï¤Ë¥¨¥é¡¼¤òÊÖ¤¹¡£
82 .SH ÊÖ¤êÃÍ
83 À®¸ù¤·¤¿¾ì¹ç¤Ë¤Ï 0 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ë \-1 ¤òÊÖ¤·¡¢
84 .I errno
85 ¤ËŬÀÚ¤ÊÃͤòÀßÄꤹ¤ë¡£
86 .SH ¥¨¥é¡¼
87 .TP
88 .B EINVAL
89 .I from
90 ¤Þ¤¿¤Ï
91 .I num
92 ¤ÎÃͤ¬ÉÔÀµ¤Ç¤¢¤ë¡£
93 .TP
94 .B EIO
95 (PowerPC ¤Ç) ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£
96 .TP
97 .B ENOMEM
98 .\" Could not allocate I/O bitmap.
99 ¥á¥â¥êÉÔ­¡£
100 .TP
101 .B EPERM
102 ¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Ë½½Ê¬¤Ê¸¢¸Â¤¬¤Ê¤«¤Ã¤¿¡£
103 .SH ½àµò
104 .BR ioperm ()
105 ¤Ï Linux ÆÃÍ­¤Î´Ø¿ô¤Ç¤¢¤ê¡¢°Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç
106 »ÈÍѤ·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
107 .SH Ãí°Õ
108 libc5 ¤Ç¤Ï¥·¥¹¥Æ¥à¥³¡¼¥ë¤È¤·¤Æ°·¤¤
109 .I <unistd.h>
110 ¤Ë¥×¥í¥È¥¿¥¤¥×¤¬Â¸ºß¤·¤Æ¤¤¤ë¡£
111 glibc1 ¤Ë¤Ï¥×¥í¥È¥¿¥¤¥×¤Ï¸ºß¤·¤Ê¤¤¡£
112 glibc2 ¤Ï
113 .I <sys/io.h>
114 ¤È
115 .I <sys/perm.h>
116 ¤ÎξÊý¤Ë¥×¥í¥È¥¿¥¤¥×¤ò»ý¤Ã¤Æ¤¤¤ë¡£
117 ¸å¼Ô¤Ï i386 ¤Î¤ß¤ÇÍøÍѲÄǽ¤Ê¤Î¤Ç¡¢»ÈÍѤ¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
118 .SH ´ØÏ¢¹àÌÜ
119 .BR iopl (2),
120 .BR capabilities (7)