1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
.\" Portions extracted from linux/kernel/ioport.c (no copyright notice).
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein. The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Modified Tue Aug 1 16:47 1995 by Jochen Karrer
.\" <cip307@cip.physik.uni-wuerzburg.de>
.\" Modified Tue Oct 22 08:11:14 EDT 1996 by Eric S. Raymond <esr@thyrsus.com>
.\" Modified Thu Jul 24 1997 by Nicols Lichtmaier <nick@debian.org>
.\" Translated into Spanish Mon Feb 16 18:57:47 CET 1998 by Gerardo
.\" Aburruzaga Garca <gerardo.aburruzaga@uca.es>
.\"
.TH IOPL 2 "16 Febrero 1998" "Linux 0.99.11" "Manual del Programador Linux"
.SH NOMBRE
iopl \- cambia nivel de privilegio de E/S
.SH SINOPSIS
.B #include <sys/io.h>
.sp
.BI "int iopl(int " nivel );
.SH DESCRIPCIN
.B iopl
cambia el nivel de privilegio de E/S del proceso en curso, como se
especifique en
.IR nivel .
Esta llamada es necesaria para permitir a los servidores X compatibles
con las tarjetas de vdeo 8514 ejecutarse en Linux. Puesto que estos
servidores X Window requieren acceso a todos los 65536 puertos de E/S,
la llamada a
.B ioperm
no basta.
Adems de otorgar acceso sin restricciones a los puertos de E/S, la
ejecucin a un nivel de privilegio de E/S ms alto tambin permite al
proceso inhabilitar las interrupciones. Esto probablemente echar
abajo el sistema, y no se recomienda pues.
Los permisos son heredados por fork() y exec().
El nivel de privilegio de E/S para un proceso normal es 0.
.SH "VALOR DEVUELTO"
En caso de xito, se devuelve cero. En caso de error, se devuelve \-1,
y se pone en
.I errno
un valor apropiado.
.SH ERRORES
.TP 0.8i
.B EINVAL
.I nivel
es mayor que 3.
.TP
.B EPERM
El usuario no es el sper-usuario.
.SH "OBSERVACIONES EXTRADAS DE LOS FUENTES DEL NCLEO"
.B iopl
tiene que emplearse cuando se quiere acceder a los puertos de E/S ms
all del rango 0x3ff: para tener todos los 65536 puertos bit-mapeados
se necesitaran 8 kB de mapas de bits por proceso, lo que es algo excesivo.
.SH "CONFORME CON"
\fBiopl\fP es especfico de Linux y no debera emplearse en
programas pretendidamente transportables.
.SH "VASE TAMBIN"
.BR ioperm (2)
|