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

  man pages->FreeBSD man pages -> i386_set_ioperm (2)              
Title
Content
Arch
Section
 

I386_GET_IOPERM(2)

Contents


NAME    [Toc]    [Back]

     i386_get_ioperm, i386_set_ioperm -- manage per-process access to the i386
     I/O port space

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <machine/sysarch.h>

     int
     i386_get_ioperm(unsigned int start, unsigned int *length, int *enable);

     int
     i386_set_ioperm(unsigned int start, unsigned int length, int enable);

DESCRIPTION    [Toc]    [Back]

     The i386_get_ioperm() system call will return the permission for the
     process' I/O port space in the *enable argument.  The port range starts
     at start and the number of contiguous entries will be returned in
     *length.

     The i386_set_ioperm() system call will set access to a range of I/O ports
     described by the start and length arguments to the state specified by the
     enable argument.

RETURN VALUES    [Toc]    [Back]

     Upon successful completion, the value 0 is returned; otherwise the
     value -1 is returned and the global variable errno is set to indicate the
     error.

ERRORS    [Toc]    [Back]

     The i386_get_ioperm() and i386_set_ioperm() system calls will fail if:

     [EINVAL]		An invalid range was specified by the start or length
			arguments.

     [EPERM]		The caller of i386_set_ioperm was not the superuser.

SEE ALSO    [Toc]    [Back]

      
      
     io(4)

AUTHORS    [Toc]    [Back]

     This man page was written by Jonathan Lemon.


FreeBSD 5.2.1			 July 27, 1998			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
i386_get_ioperm OpenBSD manage i386 per-process I/O permission bitmap
i386_set_ioperm OpenBSD manage i386 per-process I/O permission bitmap
i386_get_ioperm NetBSD manage i386 per-process I/O permission bitmap
i386_set_ioperm NetBSD manage i386 per-process I/O permission bitmap
i386_get_ldt NetBSD manage i386 per-process Local Descriptor Table entries
i386_get_ldt FreeBSD manage i386 per-process Local Descriptor Table entries
i386_set_ldt NetBSD manage i386 per-process Local Descriptor Table entries
i386_set_ldt OpenBSD manage i386 per-process Local Descriptor Table entries
i386_get_ldt OpenBSD manage i386 per-process Local Descriptor Table entries
i386_set_ldt FreeBSD manage i386 per-process Local Descriptor Table entries
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service