i386_get_ioperm.2freebsd

Langue: en

Version: 266516 (debian - 07/07/09)

Section: 2 (Appels système)


BSD mandoc

NAME

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

LIBRARY

Lb libc

SYNOPSIS

In machine/sysarch.h Ft int Fn i386_get_ioperm unsigned int start unsigned int *length int *enable Ft int Fn i386_set_ioperm unsigned int start unsigned int length int enable

DESCRIPTION

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

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

RETURN VALUES

Rv -std

ERRORS

The Fn i386_get_ioperm and Fn i386_set_ioperm system calls will fail if:
Bq Er EINVAL
An invalid range was specified by the Fa start or Fa length arguments.
Bq Er EPERM
The caller of i386_set_ioperm was not the superuser.

SEE ALSO

io(4)

AUTHORS

This man page was written by An Jonathan Lemon .