doc/documentation/manual-pages/ja/man2/i386_get_ioperm.2
Sergio Carlavilla Delgado 989d921f5d Migrate doc to Hugo/AsciiDoctor
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.

To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].

Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation

[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/

Approved by:    doceng, core
2021-01-26 00:31:29 +01:00

83 lines
2.6 KiB
Groff

.\" Copyright (c) 1998 Jonathan Lemon
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" %FreeBSD: src/lib/libc/i386/sys/i386_get_ioperm.2,v 1.11 2004/07/02 23:52:11 ru Exp %
.\"
.\" $FreeBSD$
.Dd July 27, 1998
.Os
.Dt I386_GET_IOPERM 2
.Sh 名称
.Nm i386_get_ioperm ,
.Nm i386_set_ioperm
.Nd i386 入出力ポート空間へのプロセスごとのアクセスを管理する
.Sh ライブラリ
.Lb libc
.Sh 書式
.In machine/sysarch.h
.Ft int
.Fn i386_get_ioperm "unsigned int start" "unsigned int *length" "int *enable"
.Ft int
.Fn i386_set_ioperm "unsigned int start" "unsigned int length" "int enable"
.Sh 解説
.Fn i386_get_ioperm
システムコールは、プロセスの入出力ポート空間についてのパーミッションを
.Fa *enable
引数内に返します。
ポートの範囲は
.Fa start
で開始し、連続エントリの数が
.Fa *length
内に返されます。
.Pp
.Fn i386_set_ioperm
システムコールは、
.Fa start
引数と
.Fa length
引数によって記述された入出力ポートの範囲へのアクセスを
.Fa enable
引数で指定された状態に設定します。
.Sh 戻り値
.Rv -std
.Sh エラー
.Fn i386_get_ioperm
.Fn i386_set_ioperm
システムコールは次の場合に失敗します:
.Bl -tag -width Er
.It Bq Er EINVAL
.Fa start
または
.Fa length
引数に無効な範囲が指定されました。
.It Bq Er EPERM
i386_set_ioperm の呼び出し側がスーパユーザではありませんでした。
.El
.Sh 関連項目
.Xr io 4
.Sh 作者
このマニュアルページは
.An Jonathan Lemon
が作成しました。