*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> amd64/amd64_iopl (2)              



NAME    [Toc]    [Back]

     amd64_iopl - change the amd64 I/O privilege level

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <machine/sysarch.h>

     amd64_iopl(int iopl);

DESCRIPTION    [Toc]    [Back]

     amd64_iopl() sets the amd64 I/O privilege level to the value
specified by
     iopl.  This call is restricted to the superuser.

     Note:  Code using the amd64_iopl() function must be compiled

RETURN VALUES    [Toc]    [Back]

     Upon successful completion, amd64_iopl() returns 0.   Otherwise, a value
     of  -1  is  returned and the global variable errno is set to
indicate the

ERRORS    [Toc]    [Back]

     amd64_iopl() will fail if:

     [EPERM]   The caller was not the superuser.

SEE ALSO    [Toc]    [Back]

     amd64_get_ioperm(2), amd64_set_ioperm(2)

REFERENCES    [Toc]    [Back]

     Intel, AMD64 Microprocessor Programmer's Reference Manual.

WARNING    [Toc]    [Back]

     You can really hose your machine if  you  enable  user-level
I/O and write
     to hardware ports without care.

OpenBSD      3.6                         October     14,     1995
[ Back ]
 Similar pages
Name OS Title
iopl Linux change I/O privilege level
i386_iopl NetBSD change the i386 I/O privilege level
i386_iopl OpenBSD change the i386 I/O privilege level
addpriv IRIX add a privilege to the system administration privilege database
rmpriv IRIX remove a privilege from the privilege database
boot.conf OpenBSD amd64-specific second-stage bootstrap
boot_amd64 OpenBSD amd64 system bootstrapping procedures
boot OpenBSD amd64-specific second-stage bootstrap
pxeboot OpenBSD amd64-specific second-stage PXE bootstrap
biosboot OpenBSD amd64-specific first-stage system bootstrap
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service