EN JA
I386_GET_IOPERM(2)
I386_GET_IOPERM(2) FreeBSD System Calls Manual I386_GET_IOPERM(2)

名称

i386_get_ioperm, i386_set_iopermi386 I/O ポート空間へのプロセスごとのアクセスを管理する

ライブラリ

Standard C Library (libc, -lc)

書式

#include < machine/sysarch.h>

int
i386_get_ioperm( unsigned int start, unsigned int *length, int *enable);

int
i386_set_ioperm( unsigned int start, unsigned int length, int enable);

解説

i386_get_ioperm() システムコールは、 *enable 引数にプロセスの I/O ポート空間のためのパーミッションを返します。ポート範囲は、 start から始まり、連続するエントリの数が、 *length に返されます。

i386_set_ioperm() システムコールは、 startlength 引数によって記述された I/O ポートの範囲へのアクセスを enable 引数によって指定された状態に設定します。

戻り値

Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

エラー

i386_get_ioperm() と i386_set_ioperm() システムコールは、次の場合に失敗します:
[ EINVAL]
無効の範囲が start または length 引数によって指定されました。
[ EPERM]
i386_set_ioperm の呼び出し側がスーパユーザではありません。

関連項目

io(4)

作者

このマニュアルページは、 Jonathan Lemon によって書かれました。
July 27, 1998 FreeBSD