-.\" 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).
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" 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.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\" Modified Tue Aug 1 16:47 1995 by Jochen Karrer
.\" <cip307@cip.physik.uni-wuerzburg.de>
.\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
.\" Added notes on capability requirements
.\"
-.TH IOPL 2 2004-05-27 "Linux" "Linux Programmer's Manual"
+.TH IOPL 2 2013-03-15 "Linux" "Linux Programmer's Manual"
.SH NAME
iopl \- change I/O privilege level
.SH SYNOPSIS
.BI "int iopl(int " level );
.SH DESCRIPTION
.BR iopl ()
-changes the I/O privilege level of the calling process, as specified in
+changes the I/O privilege level of the calling process,
+as specified by the two least significant bits in
.IR level .
This call is necessary to allow 8514-compatible X servers to run under
This call is mostly for the i386 architecture.
On many other architectures it does not exist or will always
return an error.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
On success, zero is returned.
On error, \-1 is returned, and
.I errno
.BR iopl ();
the
.B CAP_SYS_RAWIO
-capability is required.
-.SH "CONFORMING TO"
+capability is required to raise the I/O privilege level
+above its current value.
+.SH CONFORMING TO
.BR iopl ()
-is Linux-specific and should not be used in processes
+is Linux-specific and should not be used in programs that are
intended to be portable.
.SH NOTES
Libc5 treats it as a system call and has a prototype in
and in
.IR <sys/perm.h> .
Avoid the latter, it is available on i386 only.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR ioperm (2),
+.BR outb (2),
.BR capabilities (7)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.