1vm86(2)                       System Calls Manual                      vm86(2)
2
3
4

NAME

6       vm86old, vm86 - enter virtual 8086 mode
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <sys/vm86.h>
13
14       int vm86old(struct vm86_struct *info);
15       int vm86(unsigned long fn, struct vm86plus_struct *v86);
16

DESCRIPTION

18       The system call vm86() was introduced in Linux 0.97p2.  In Linux 2.1.15
19       and 2.0.28, it was renamed to vm86old(), and a new  vm86()  was  intro‐
20       duced.   The  definition of struct vm86_struct was changed in 1.1.8 and
21       1.1.9.
22
23       These calls cause the process to enter VM86 mode (virtual-8086 in Intel
24       literature), and are used by dosemu.
25
26       VM86 mode is an emulation of real mode within a protected mode task.
27

RETURN VALUE

29       On  success,  zero is returned.  On error, -1 is returned, and errno is
30       set to indicate the error.
31

ERRORS

33       EFAULT This return value is specific to i386 and  indicates  a  problem
34              with getting user-space data.
35
36       ENOSYS This  return  value indicates the call is not implemented on the
37              present architecture.
38
39       EPERM  Saved kernel stack exists.  (This is a kernel sanity check;  the
40              saved stack should exist only within vm86 mode itself.)
41

STANDARDS

43       Linux on 32-bit Intel processors.
44
45
46
47Linux man-pages 6.04              2023-03-30                           vm86(2)
Impressum