1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (c) 1993 Michael Haardt
4 .\" (u31b3hs@pool.informatik.rwth-aachen.de)
5 .\" Fri Apr 2 11:32:09 MET DST 1993
7 .\" This is free documentation; you can redistribute it and/or
8 .\" modify it under the terms of the GNU General Public License as
9 .\" published by the Free Software Foundation; either version 2 of
10 .\" the License, or (at your option) any later version.
12 .\" The GNU General Public License's references to "object code"
13 .\" and "executables" are to be interpreted as the output of any
14 .\" document formatting or typesetting system, including
15 .\" intermediate and printed output.
17 .\" This manual is distributed in the hope that it will be useful,
18 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
19 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 .\" GNU General Public License for more details.
22 .\" You should have received a copy of the GNU General Public
23 .\" License along with this manual; if not, write to the Free
24 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
27 .\" Modified Sat Jul 24 15:12:05 1993 by Rik Faith (faith@cs.unc.edu)
28 .\" Modified Tue Aug 1 16:27 1995 by Jochen Karrer
29 .\" (cip307@cip.physik.uni-wuerzburg.de)
30 .\" Translated to German Sun Jun 02 13:54:00 1996 by Patrick Rother <krd@gulu.net>
32 .TH IOPERM 2 "2. Juni 1996" "Linux" "Systemaufrufe"
34 ioperm \- setze Port-Zugriffsrechte für Eingabe/Ausgabe
36 .B #include <unistd.h>
38 .BI "int ioperm(unsigned long " from ", unsigned long " num ", int " turn_on );
41 setzt die Portzugriffsrechtsbits für den Prozess für
43 Byte beginnend mit Portadresse
49 benötigt Superuser-Rechte.
51 Nur die ersten 0x3ff I/O-Ports können in dieser Weise angegeben werden. Bei
52 weiteren Ports muss die Funktion
55 Rechte werden nicht von fork, wohl aber von exec vererbt. Dies ist nützlich,
56 um Portzugriffsrechte nicht-privilegierten Tasks zu gewähren.
58 Bei Erfolg wird Null zurückgegeben. Im Fehlerfall wird \-1 zurückgegeben und