OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man2 / outb.2
index fd8ed92..8fc4f6d 100644 (file)
@@ -1,9 +1,8 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright (c) 1995 Paul Gortmaker
 .\" (gpg109@rsphy1.anu.edu.au)
 .\" Wed Nov 29 10:58:54 EST 1995
 .\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
 .\" This is free documentation; you can redistribute it and/or
 .\" modify it under the terms of the GNU General Public License as
 .\" published by the Free Software Foundation; either version 2 of
 .\" GNU General Public License for more details.
 .\"
 .\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
-.\" USA.
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 1996 HANATAKA Shinya
 .\"         all rights reserved.
 .\" Updated Thu Mar 24 JST 2005 by Kentaro Shirakata <argrath@ub32.org>
 .\" Updated Thu Oct  9 JST 2005 by Kentaro Shirakata <argrath@ub32.org>
 .\"
-.\"WORD:       inline macro            インライン・マクロ
-.\"WORD:       unresolved reference    解決できない参照
-.\"WORD:       segmentation fault      セグメンテーション違反
-.\"
-.TH OUTB 2 1995-11-29 "Linux" "Linux Programmer's Manual"
+.TH OUTB 2 2012\-12\-31 Linux "Linux Programmer's Manual"
 .SH 名前
-.\"O outb, outw, outl, outsb, outsw, outsl,
-.\"O inb, inw, inl, insb, insw, insl,
-.\"O outb_p, outw_p, outl_p, inb_p, inw_p, inl_p \- port I/O
-outb, outw, outl, outsb, outsw, outsl,
-inb, inw, inl, insb, insw, insl,
+outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl,
 outb_p, outw_p, outl_p, inb_p, inw_p, inl_p \- ポート入出力
+.SH 書式
+.nf
+\fB#include <sys/io.h>\fP
+
+\fBunsigned char inb(unsigned short int \fP\fIport\fP\fB);\fP
+\fBunsigned char inb_p(unsigned short int \fP\fIport\fP\fB);\fP
+\fBunsigned short int inw(unsigned short int \fP\fIport\fP\fB);\fP
+\fBunsigned short int inw_p(unsigned short int \fP\fIport\fP\fB);\fP
+\fBunsigned int inl(unsigned short int \fP\fIport\fP\fB);\fP
+\fBunsigned int inl_p(unsigned short int \fP\fIport\fP\fB);\fP
+
+\fBvoid outb(unsigned char \fP\fIvalue\fP\fB, unsigned short int \fP\fIport\fP\fB);\fP
+\fBvoid outb_p(unsigned char \fP\fIvalue\fP\fB, unsigned short int \fP\fIport\fP\fB);\fP
+\fBvoid outw(unsigned short int \fP\fIvalue\fP\fB, unsigned short int \fP\fIport\fP\fB);\fP
+\fBvoid outw_p(unsigned short int \fP\fIvalue\fP\fB, unsigned short int \fP\fIport\fP\fB);\fP
+\fBvoid outl(unsigned int \fP\fIvalue\fP\fB, unsigned short int \fP\fIport\fP\fB);\fP
+\fBvoid outl_p(unsigned int \fP\fIvalue\fP\fB, unsigned short int \fP\fIport\fP\fB);\fP
+
+\fBvoid insb(unsigned short int \fP\fIport\fP\fB, void *\fP\fIaddr\fP\fB,\fP
+\fB           unsigned long int \fP\fIcount\fP\fB);\fP
+\fBvoid insw(unsigned short int \fP\fIport\fP\fB, void *\fP\fIaddr\fP\fB,\fP
+\fB           unsigned long int \fP\fIcount\fP\fB);\fP
+\fBvoid insl(unsigned short int \fP\fIport\fP\fB, void *\fP\fIaddr\fP\fB,\fP
+\fB           unsigned long int \fP\fIcount\fP\fB);\fP
+\fBvoid outsb(unsigned short int \fP\fIport\fP\fB, const void *\fP\fIaddr\fP\fB,\fP
+\fB           unsigned long int \fP\fIcount\fP\fB);\fP
+\fBvoid outsw(unsigned short int \fP\fIport\fP\fB, const void *\fP\fIaddr\fP\fB,\fP
+\fB           unsigned long int \fP\fIcount\fP\fB);\fP
+\fBvoid outsl(unsigned short int \fP\fIport\fP\fB, const void *\fP\fIaddr\fP\fB,\fP
+\fB           unsigned long int \fP\fIcount\fP\fB);\fP
+.fi
 .SH 説明
-.\"O This family of functions is used to do low-level port input and output.
-.\"O The out* functions do port output, the in* functions do port input;
-.\"O the b-suffix functions are byte-width and the w-suffix functions
-.\"O word-width; the _p-suffix functions pause until the I/O completes.
-この一連の関数はポートに対する低レベルの入出力に使用する。
-out* 関数はポート出力、in* 関数はポート入力を行う。
-語尾に b がついている関数はバイト単位、w がついている関数はワード単位である。
-_p がついている関数は I/O が終了するまで待つ。
+この一連の関数はポートに対する低レベルの入出力に使用する。 out* 関数はポート出力、in* 関数はポート入力を行う。 語尾に b
+がついている関数はバイト単位、w がついている関数はワード単位である。 _p がついている関数は I/O が終了するまで待つ。
 .LP
-.\"O They are primarily designed for internal kernel use,
-.\"O but can be used from user space.
-.\"O .\" , given the following information
-.\"O .\" in addition to that given in
-.\"O .\" .BR outb (9).
-これらの関数はもともとカーネル内部での使用を想定して設計されているが、
-ユーザー空間からでも使用できる。
-.\" 追加の情報は
-.\" .BR outb (9)
-.\" にある。
+.\" , given the following information
+.\" in addition to that given in
+.\" .BR outb (9).
+これらの関数はもともとカーネル内部での使用を想定して設計されているが、 ユーザー空間からでも使用できる。
 
-.\"O You compile with \fB\-O\fP or \fB\-O2\fP or similar.
-.\"O The functions
-.\"O are defined as inline macros, and will not be substituted in without
-.\"O optimization enabled, causing unresolved references at link time.
-\fB\-O\fP や \fB\-O2\fP などを指定してコンパイルすること。
-これらの関数はインライン・マクロとして定義されており、
-最適化を行わないと関数の展開が行われず、
-リンクの時に「解決できない参照(unresolved reference)」が発生する。
+\fB\-O\fP や \fB\-O2\fP などを指定してコンパイルしなければならない。 これらの関数はインラインマクロとして定義されており、
+最適化を行わないと関数の展開が行われず、 リンクの時に「解決できない参照(unresolved reference)」が発生する。
 
-.\"O You use
-.\"O .BR ioperm (2)
-.\"O or alternatively
-.\"O .BR iopl (2)
-.\"O to tell the kernel to allow the user space application to access the
-.\"O I/O ports in question.
-.\"O Failure to do this will cause the application
-.\"O to receive a segmentation fault.
-ユーザー空間のアプリケーションが I/O ポートにアクセスすることを
-カーネルに教えるために
-.BR ioperm (2)
-もしくは
-.BR iopl (2)
-を使用すること。これを忘れるとアプリケーションはセグメンテーション違反
-(segmentation fault) を受けとることになる。
+ユーザー空間のアプリケーションが I/O ポートにアクセスすることを カーネルに教えるために \fBioperm\fP(2)  もしくは \fBiopl\fP(2)
+を使用すること。これを忘れるとアプリケーションはセグメンテーション違反 (segmentation fault) を受けとることになる。
 .SH 準拠
-.\"O .BR outb ()
-.\"O and friends are hardware-specific.
-.\"O The
-.\"O .I value
-.\"O argument is passed first and the
-.\"O .I port
-.\"O argument is passed second,
-.\"O which is the opposite order from most DOS implementations.
-.BR outb ()
-とその仲間はハードウェア特有である。
-.I value
-引数が最初に渡され、
-.I port
-引数が二番目に渡される。
+\fBoutb\fP()  とその仲間はハードウェア特有である。 \fIvalue\fP 引数が最初に渡され、 \fIport\fP 引数が二番目に渡される。
 この順序はほとんどの DOS での実装とは逆である。
 .SH 関連項目
-.BR ioperm (2),
-.BR iopl (2)
+\fBioperm\fP(2), \fBiopl\fP(2)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。