版权所有 © 2014 tutorialspoint
vm86old, vm86 - 进入虚拟8086模式
#include <sys/vm86.h> int vm86old(struct vm86_struct *info); int vm86(unsigned long fn, struct vm86plus_struct *v86);
int vm86old(struct vm86_struct *info);
int vm86(unsigned long fn, struct vm86plus_struct *v86);
系统调用vm86()在Linux 0.97p2中引入。在Linux 2.1.15和2.0.28中,它被重命名为vm86old(),并引入了一个新的vm86()。'struct vm86_struct'的定义在1.1.8和1.1.9中发生了变化。
这些调用使进程进入VM86模式(Intel文献中的虚拟-8086),并被dosemu使用。
VM86模式是在保护模式任务中对实模式的仿真。
成功时,返回零。出错时,返回-1,并相应地设置errno。
此调用特定于Intel处理器上的Linux,不应在旨在可移植的程序中使用。
广告