tail head cat sleep
QR code linking to this page

manページ  — I386_GET_IOPERM

名称

i386_get_ioperm, i386_set_ioperm – i386 入出力ポート空間へのプロセスごとのアクセスを管理する

内容

ライブラリ

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 引数内に返します。 ポートの範囲は start で開始し、連続エントリの数が *length 内に返されます。

i386_set_ioperm() システムコールは、 start 引数と length 引数によって記述された入出力ポートの範囲へのアクセスを 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 が作成しました。

I386_GET_IOPERM (2) July 27, 1998

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

The “N” in NFS stands for Not, or Need, or perhaps Nightmare
— Harry Spencer