OSDN Git Service

Update release for LDP 3.67
[linuxjm/LDP_man-pages.git] / release / man2 / outb.2
index 6193989..d452074 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.
 .\"
 .\"*******************************************************************
-.TH OUTB 2 1995\-11\-29 Linux "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1996 HANATAKA Shinya
+.\"         all rights reserved.
+.\" Translated Wed Dec  4 15:19:14 JST 1996
+.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\" Updated Fri Dec 14 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
+.\" Updated Sun May 23 JST 2004 by Kentaro Shirakata <argrath@ub32.org>
+.\" Updated Thu Mar 24 JST 2005 by Kentaro Shirakata <argrath@ub32.org>
+.\" Updated Thu Oct  9 JST 2005 by Kentaro Shirakata <argrath@ub32.org>
+.\"
+.TH OUTB 2 2012\-12\-31 Linux "Linux Programmer's Manual"
 .SH 名前
 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 説明
 この一連の関数はポートに対する低レベルの入出力に使用する。 out* 関数はポート出力、in* 関数はポート入力を行う。 語尾に b
 がついている関数はバイト単位、w がついている関数はワード単位である。 _p がついている関数は I/O が終了するまで待つ。
@@ -43,7 +82,7 @@ outb_p, outw_p, outl_p, inb_p, inw_p, inl_p \- ポート入出力
 .\" .BR outb (9).
 これらの関数はもともとカーネル内部での使用を想定して設計されているが、 ユーザー空間からでも使用できる。
 
-\fB\-O\fP ã\82\84 \fB\-O2\fP ã\81ªã\81©ã\82\92æ\8c\87å®\9aã\81\97ã\81¦ã\82³ã\83³ã\83\91ã\82¤ã\83«ã\81\99ã\82\8bã\81\93ã\81¨。 これらの関数はインライン・マクロとして定義されており、
+\fB\-O\fP ã\82\84 \fB\-O2\fP ã\81ªã\81©ã\82\92æ\8c\87å®\9aã\81\97ã\81¦ã\82³ã\83³ã\83\91ã\82¤ã\83«ã\81\97ã\81ªã\81\91ã\82\8cã\81°ã\81ªã\82\89ã\81ªã\81\84。 これらの関数はインライン・マクロとして定義されており、
 最適化を行わないと関数の展開が行われず、 リンクの時に「解決できない参照(unresolved reference)」が発生する。
 
 ユーザー空間のアプリケーションが I/O ポートにアクセスすることを カーネルに教えるために \fBioperm\fP(2)  もしくは \fBiopl\fP(2)
@@ -53,3 +92,7 @@ outb_p, outw_p, outl_p, inb_p, inw_p, inl_p \- ポート入出力
 この順序はほとんどの DOS での実装とは逆である。
 .SH 関連項目
 \fBioperm\fP(2), \fBiopl\fP(2)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。