File: iopl.2

package info (click to toggle)
manpages-pt 20040726-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 2,988 kB
  • ctags: 1
  • sloc: sh: 45; makefile: 14
file content (88 lines) | stat: -rw-r--r-- 3,285 bytes parent folder | download | duplicates (6)
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
84
85
86
87
88
.\" -*- nroff -*-
.\"
.\" 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 Fri Nov 27 14:50:36 CET 1998 by Andries Brouwer <aeb@cwi.nl>
.\"
.TH IOPL 2 "24/07/1993" "Linux 0.99.11" "Manual do Programador Linux"
.SH NOME
iopl \- altera o nvel de privilgio de E/S
.SH SINOPSE
.B #include <unistd.h>
/* for libc5 */
.br
.B #include <sys/io.h>
/* for glibc */
.sp
.BI "int iopl(int " level );
.SH DESCRIO
.B iopl
altera o nvel de privilgio de E/S de um processo aatual, como especificado em
.IR level .

Esta chamada  necessria para permitir a compatibilidade que servidores X 8514 rodem no
Linux. Desde ento estes servidores X acessam todas as portas de E/S do 65536, a chamada
.B ioperm
no foi suficiente.

Em adio a concesso de acesso as portas de E/S irrestrito, rodando em um alto nvel de
privilgio de E/S tambm permite ao processo desabilitar interrupes. Isto
ir provavelmente derrubar o sistema, e no  recomendado.

Permisses so herdadas atravs de fork e exec.

O nvel de privilgio de E/S para um processo normal  0.
.SH "VALORES RETORNADOS"
Em caso de sucesso, zero  retornado. Caso contrrio, \-1  retornado, e
.I errno
 selecionado adequamente.
.SH ERROS
.TP
.B EINVAL
.I level
 maior que 3.
.TP
.B EPERM
O usurio autal no  o superusurio.
.SH "NOTAS VINDAS DO FONTE DO KERNEL"
.B iopl
ela tem que ser usada quando voc procura acessar as portas de E/S alm do intervalo
0x3ff: para obter o mapa de bits completo do 65536 voc precisaria de 8kB de
mapa de bits/processo,o que  um excesso de bits.
.SH "DE ACORDO COM"
\fBiopl\fP  especfica do Linux e no deveria ser usada em processos
que pretendem ser portveis.
.SH NOTAS
Libc5 trata com uma chamada de sistema e tem um tipo primitivo em
.IR <unistd.h> .
Glibc1 no tem um tipo primitivo. Glibc2 tem um tipo primitivo em
.I <sys/io.h>
e em
.IR <sys/perm.h> .
Evitar o segundo, ele est disponvel somente nos i386.
.SH "VEJA TAMBM"
.BR ioperm (2)