1 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
2 .\" Copyright 1997 Andries E. Brouwer (aeb@cwi.nl)
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH VM86 2 2022-09-09 "Linux man-pages (unreleased)"
8 vm86old, vm86 \- enter virtual 8086 mode
11 .RI ( libc ", " \-lc )
14 .B #include <sys/vm86.h>
16 .BI "int vm86old(struct vm86_struct *" info );
17 .BI "int vm86(unsigned long " fn ", struct vm86plus_struct *" v86 );
22 was introduced in Linux 0.97p2.
23 In Linux 2.1.15 and 2.0.28, it was renamed to
33 These calls cause the process to enter VM86 mode (virtual-8086 in Intel
34 literature), and are used by
37 VM86 mode is an emulation of real mode within a protected mode task.
39 On success, zero is returned.
40 On error, \-1 is returned, and
42 is set to indicate the error.
46 This return value is specific to i386 and indicates a problem with getting
50 This return value indicates the call is not implemented on the present
54 Saved kernel stack exists.
55 (This is a kernel sanity check; the saved
56 stack should exist only within vm86 mode itself.)
58 This call is specific to Linux on 32-bit Intel processors,
59 and should not be used in programs intended to be portable.