vm86のヘルプ・マニュアル
日本語 英語
vm86 --help
man vm86
VM86(2) Linux Programmer’s Manual VM86(2)
名前
vm86old, vm86 - 仮想 8086 モードへ移行する
書式
#include
int vm86old(struct vm86_struct *info);
int vm86(unsigned long fn, struct vm86plus_struct *v86);
説明
vm86() システムコールは Linux 0.97p2 で導入された。これは Linux 2.1.15
と 2.0.28 で vm86old() に名前が変更され、新しい vm86() が導入され た 。
struct vm86_struct の定義は 1.1.8 と 1.1.9 で変更された。
これらのコールによってプロセスは VM86 モード (Intel の文書では仮想 8086
モード) へと移行する。これらのコールは dosemu で使用される。
VM86 モードはプロテクトモードタスクにおけるリアルモードのエミュレーショ
ンである。
返り値
成 功した場合は 0 を返す。失敗した場合は -1 を返し、 errno がエラーの内
容に従って設定される。
エラー
EFAULT この返り値は i386 固有のものであり、ユーザー空間のデータを取得す
る際に問題があったことを示す。
ENOSYS この返り値は、このコールが現在のアーキテクチャで実装されていない
ことを示す。
EPERM 保存されたカーネルスタックが既に存在している。(これはカーネル が
通 常の状態であるかをチェックしている。保存されたスタックは vm86
モードでしか存在しない。)
準拠
この関数は 32 ビット Intel プロセッサ上の Linux 特有の関数であり、移 植
を意図したプログラムでは使用すべきでない。
Linux 2009-02-20 VM86(2)
VM86(2) Linux Programmer’s Manual VM86(2)
NAME
vm86old, vm86 - enter virtual 8086 mode
SYNOPSIS
#include
int vm86old(struct vm86_struct *info);
int vm86(unsigned long fn, struct vm86plus_struct *v86);
DESCRIPTION
The system call vm86() was introduced in Linux 0.97p2. In Linux 2.1.15
and 2.0.28 it was renamed to vm86old(), and a new vm86() was intro-
duced. The definition of struct vm86_struct was changed in 1.1.8 and
1.1.9.
These calls cause the process to enter VM86 mode (virtual-8086 in Intel
literature), and are used by dosemu.
VM86 mode is an emulation of real mode within a protected mode task.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is
set appropriately.
ERRORS
EFAULT This return value is specific to i386 and indicates a problem
with getting userspace data.
ENOSYS This return value indicates the call is not implemented on the
present architecture.
EPERM Saved kernel stack exists. (This is a kernel sanity check; the
saved stack should only exist within vm86 mode itself.)
CONFORMING TO
This call is specific to Linux on 32-bit Intel processors, and should
not be used in programs intended to be portable.
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2009-02-20 VM86(2)