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

  man pages->OpenBSD man pages -> i386/i386_iopl (2)              
Title
Content
Arch
Section
 

I386_IOPL(2)

Contents


NAME    [Toc]    [Back]

     i386_iopl - change the i386 I/O privilege level

SYNOPSIS    [Toc]    [Back]

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

     int
     i386_iopl(int iopl);

DESCRIPTION    [Toc]    [Back]

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

     Note:  Code  using the i386_iopl() function must be compiled
using -li386.

RETURN VALUES    [Toc]    [Back]

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

ERRORS    [Toc]    [Back]

     i386_iopl() will fail if:

     [EPERM]   The caller was not the superuser.

SEE ALSO    [Toc]    [Back]

      
      
     i386_get_ioperm(2), i386_set_ioperm(2)

REFERENCES    [Toc]    [Back]

     Intel, i386 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
amd64_iopl OpenBSD change the amd64 I/O privilege level
addpriv IRIX add a privilege to the system administration privilege database
rmpriv IRIX remove a privilege from the privilege database
io FreeBSD I/O privilege file
privilege IRIX privilege database
PrivilegeManager IRIX privilege manager
boot_i386 OpenBSD i386 system bootstrapping procedures
pxeboot OpenBSD i386-specific second-stage PXE bootstrap
boot.conf OpenBSD i386-specific second-stage bootstrap
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service