]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/vm86.2
Changes.old: Fix changelog entry for 3.18 qsort change
[thirdparty/man-pages.git] / man2 / vm86.2
CommitLineData
fea681da
MK
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.
c13182ef 14.\"
fea681da
MK
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.
c13182ef 22.\"
fea681da
MK
23.\" Formatted or processed versions of this manual, if unaccompanied by
24.\" the source, must acknowledge the copyright and authors of this work.
25.\"
d9343c5c 26.TH VM86 2 1997-07-17 "Linux" "Linux Programmer's Manual"
fea681da
MK
27.SH NAME
28vm86old, vm86 \- enter virtual 8086 mode
29.SH SYNOPSIS
30.B #include <sys/vm86.h>
31.sp
32.BI "int vm86old(struct vm86_struct *" info );
33.sp
34.BI "int vm86(unsigned long " fn ", struct vm86plus_struct *" v86 );
35.SH DESCRIPTION
36The system call
e511ffb6 37.BR vm86 ()
c13182ef
MK
38was introduced in Linux 0.97p2.
39In Linux 2.1.15 and 2.0.28 it was renamed to
e511ffb6 40.BR vm86old (),
fea681da 41and a new
e511ffb6 42.BR vm86 ()
c13182ef 43was introduced.
2b0fa182 44The definition of \fIstruct vm86_struct\fP was changed
fea681da
MK
45in 1.1.8 and 1.1.9.
46.LP
47These calls cause the process to enter VM86 mode (virtual-8086 in Intel
c13182ef 48literature), and are used by
fea681da
MK
49.BR dosemu .
50.PP
51VM86 mode is an emulation of real mode within a protected mode task.
52.SH "RETURN VALUE"
c13182ef
MK
53On success, zero is returned.
54On error, \-1 is returned, and
fea681da
MK
55.I errno
56is set appropriately.
57.SH ERRORS
58.TP
59.B EFAULT
60This return value is specific to i386 and indicates a problem with getting
61userspace data.
62.TP
63.B ENOSYS
64This return value indicates the call is not implemented on the present
65architecture.
66.TP
67.B EPERM
c13182ef
MK
68Saved kernel stack exists.
69(This is a kernel sanity check; the saved
fea681da
MK
70stack should only exist within vm86 mode itself.)
71.SH "CONFORMING TO"
72This call is specific to Linux on Intel processors, and should not be
73used in programs intended to be portable.