OSDN Git Service

c01a28feca48ee55d92acbb788fee93d17ca76e3
[linuxjm/LDP_man-pages.git] / draft / man2 / vm86.2
1 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
2 .\" Copyright 1997 Andries E. Brouwer (aeb@cwi.nl)
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH VM86 2 2009\-02\-20 Linux "Linux Programmer's Manual"
32 .SH 名前
33 vm86old, vm86 \- 仮想 8086 モードへ移行する
34 .SH 書式
35 \fB#include <sys/vm86.h>\fP
36 .sp
37 \fBint vm86old(struct vm86_struct *\fP\fIinfo\fP\fB);\fP
38 .sp
39 \fBint vm86(unsigned long \fP\fIfn\fP\fB, struct vm86plus_struct *\fP\fIv86\fP\fB);\fP
40 .SH 説明
41 \fBvm86\fP()  システムコールは Linux 0.97p2 で導入された。 これは Linux 2.1.15 と 2.0.28 で
42 \fBvm86old\fP()  に名前が変更され、 新しい \fBvm86\fP()  が導入された。 \fIstruct vm86_struct\fP の定義は
43 1.1.8 と 1.1.9 で変更された。
44 .LP
45 これらのコールによってプロセスは VM86 モード (Intel の文書では仮想 8086 モード) へと移行する。 これらのコールは
46 \fBdosemu\fP で使用される。
47 .PP
48 VM86 モードはプロテクトモードタスクにおける リアルモードのエミュレーションである。
49 .SH 返り値
50 成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
51 .SH エラー
52 .TP 
53 \fBEFAULT\fP
54 この返り値は i386 固有のものであり、 ユーザー空間のデータを取得する際に問題があったことを示す。
55 .TP 
56 \fBENOSYS\fP
57 この返り値は、このコールが現在のアーキテクチャで実装されていないことを示す。
58 .TP 
59 \fBEPERM\fP
60 保存されたカーネルスタックが既に存在している。(これはカーネルが通常の 状態であるかをチェックしている。保存されたスタックは vm86 モードで
61 しか存在しない。)
62 .SH 準拠
63 この関数は 32 ビット Intel プロセッサ上の Linux 特有の関数であり、 移植を意図したプログラムでは使用すべきでない。
64 .SH この文書について
65 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
66 である。プロジェクトの説明とバグ報告に関する情報は
67 http://www.kernel.org/doc/man\-pages/ に書かれている。