OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / release / man2 / vm86.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
4 .\" Copyright 1997 Andries E. Brouwer (aeb@cwi.nl)
5 .\"
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\"
26 .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
27 .\"         all rights reserved.
28 .\" Translated Thu Jun 26 21:32:38 JST 1997
29 .\"         by SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
30 .\" Modified Sun Mar 21 17:23:16 JST 1999
31 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
32 .\" Updated & Modified Sat May 22 19:50:44 JST 2004
33 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
34 .\"
35 .TH VM86 2 2009-02-20 "Linux" "Linux Programmer's Manual"
36 .SH 名前
37 vm86old, vm86 \- 仮想 8086 モードへ移行する
38 .SH 書式
39 .B #include <sys/vm86.h>
40 .sp
41 .BI "int vm86old(struct vm86_struct *" info );
42 .sp
43 .BI "int vm86(unsigned long " fn ", struct vm86plus_struct *" v86 );
44 .SH 説明
45 .BR vm86 ()
46 システムコールは Linux 0.97p2 で導入された。
47 これは Linux 2.1.15 と 2.0.28 で
48 .BR vm86old ()
49 に名前が変更され、
50 新しい
51 .BR vm86 ()
52 が導入された。
53 \fIstruct vm86_struct\fP の定義は 1.1.8 と 1.1.9 で変更された。
54 .LP
55 これらのコールによってプロセスは VM86 モード
56 (Intel の文書では仮想 8086 モード) へと移行する。
57 これらのコールは
58 .B dosemu
59 で使用される。
60 .PP
61 VM86 モードはプロテクトモードタスクにおける
62 リアルモードのエミュレーションである。
63 .SH 返り値
64 成功した場合は 0 を返す。失敗した場合は \-1 を返し、
65 .I errno
66 がエラーの内容に従って設定される。
67 .SH エラー
68 .TP
69 .B EFAULT
70 この返り値は i386 固有のものであり、
71 ユーザー空間のデータを取得する際に問題があったことを示す。
72 .TP
73 .B ENOSYS
74 この返り値は、このコールが現在のアーキテクチャで実装されていないことを示す。
75 .TP
76 .B EPERM
77 保存されたカーネルスタックが既に存在している。(これはカーネルが通常の
78 状態であるかをチェックしている。保存されたスタックは vm86 モードで
79 しか存在しない。)
80 .SH 準拠
81 この関数は 32 ビット Intel プロセッサ上の Linux 特有の関数であり、
82 移植を意図したプログラムでは使用すべきでない。