Blame man2/vm86.2

Packit 7cfc04
.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
Packit 7cfc04
.\" Copyright 1997 Andries E. Brouwer (aeb@cwi.nl)
Packit 7cfc04
.\"
Packit 7cfc04
.\" %%%LICENSE_START(VERBATIM)
Packit 7cfc04
.\" Permission is granted to make and distribute verbatim copies of this
Packit 7cfc04
.\" manual provided the copyright notice and this permission notice are
Packit 7cfc04
.\" preserved on all copies.
Packit 7cfc04
.\"
Packit 7cfc04
.\" Permission is granted to copy and distribute modified versions of this
Packit 7cfc04
.\" manual under the conditions for verbatim copying, provided that the
Packit 7cfc04
.\" entire resulting derived work is distributed under the terms of a
Packit 7cfc04
.\" permission notice identical to this one.
Packit 7cfc04
.\"
Packit 7cfc04
.\" Since the Linux kernel and libraries are constantly changing, this
Packit 7cfc04
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
Packit 7cfc04
.\" responsibility for errors or omissions, or for damages resulting from
Packit 7cfc04
.\" the use of the information contained herein.  The author(s) may not
Packit 7cfc04
.\" have taken the same level of care in the production of this manual,
Packit 7cfc04
.\" which is licensed free of charge, as they might when working
Packit 7cfc04
.\" professionally.
Packit 7cfc04
.\"
Packit 7cfc04
.\" Formatted or processed versions of this manual, if unaccompanied by
Packit 7cfc04
.\" the source, must acknowledge the copyright and authors of this work.
Packit 7cfc04
.\" %%%LICENSE_END
Packit 7cfc04
.\"
Packit 7cfc04
.TH VM86 2 2009-02-20 "Linux" "Linux Programmer's Manual"
Packit 7cfc04
.SH NAME
Packit 7cfc04
vm86old, vm86 \- enter virtual 8086 mode
Packit 7cfc04
.SH SYNOPSIS
Packit 7cfc04
.B #include <sys/vm86.h>
Packit 7cfc04
.PP
Packit 7cfc04
.BI "int vm86old(struct vm86_struct *" info );
Packit 7cfc04
.PP
Packit 7cfc04
.BI "int vm86(unsigned long " fn ", struct vm86plus_struct *" v86 );
Packit 7cfc04
.SH DESCRIPTION
Packit 7cfc04
The system call
Packit 7cfc04
.BR vm86 ()
Packit 7cfc04
was introduced in Linux 0.97p2.
Packit 7cfc04
In Linux 2.1.15 and 2.0.28, it was renamed to
Packit 7cfc04
.BR vm86old (),
Packit 7cfc04
and a new
Packit 7cfc04
.BR vm86 ()
Packit 7cfc04
was introduced.
Packit 7cfc04
The definition of
Packit 7cfc04
.IR "struct vm86_struct"
Packit 7cfc04
was changed
Packit 7cfc04
in 1.1.8 and 1.1.9.
Packit 7cfc04
.PP
Packit 7cfc04
These calls cause the process to enter VM86 mode (virtual-8086 in Intel
Packit 7cfc04
literature), and are used by
Packit 7cfc04
.BR dosemu .
Packit 7cfc04
.PP
Packit 7cfc04
VM86 mode is an emulation of real mode within a protected mode task.
Packit 7cfc04
.SH RETURN VALUE
Packit 7cfc04
On success, zero is returned.
Packit 7cfc04
On error, \-1 is returned, and
Packit 7cfc04
.I errno
Packit 7cfc04
is set appropriately.
Packit 7cfc04
.SH ERRORS
Packit 7cfc04
.TP
Packit 7cfc04
.B EFAULT
Packit 7cfc04
This return value is specific to i386 and indicates a problem with getting
Packit 7cfc04
user-space data.
Packit 7cfc04
.TP
Packit 7cfc04
.B ENOSYS
Packit 7cfc04
This return value indicates the call is not implemented on the present
Packit 7cfc04
architecture.
Packit 7cfc04
.TP
Packit 7cfc04
.B EPERM
Packit 7cfc04
Saved kernel stack exists.
Packit 7cfc04
(This is a kernel sanity check; the saved
Packit 7cfc04
stack should exist only within vm86 mode itself.)
Packit 7cfc04
.SH CONFORMING TO
Packit 7cfc04
This call is specific to Linux on 32-bit Intel processors,
Packit 7cfc04
and should not be used in programs intended to be portable.
Packit 7cfc04
.SH COLOPHON
Packit 7cfc04
This page is part of release 4.15 of the Linux
Packit 7cfc04
.I man-pages
Packit 7cfc04
project.
Packit 7cfc04
A description of the project,
Packit 7cfc04
information about reporting bugs,
Packit 7cfc04
and the latest version of this page,
Packit 7cfc04
can be found at
Packit 7cfc04
\%https://www.kernel.org/doc/man\-pages/.