iopl - change I/O privilege level
#include <sys/io.h>
[[deprecated]] int iopl(int level);
iopl() changes the I/O privilege level of the
calling thread, as specified by the two least significant bits in
level
.
The I/O privilege level for a normal thread is 0. Permissions are inherited from parents to children.
This call is deprecated, is significantly slower than ioperm(2), and is only provided for older X servers which require access to all 65536 I/O ports. It is mostly for the i386 architecture. On many other architectures it does not exist or will always return an error.
On success, zero is returned. On error, -1 is returned, and
errno
is set to indicate the error.
ioperm(2), outb(2), capabilities(7)