1OUTB(2)                    Linux Programmer's Manual                   OUTB(2)
2
3
4

NAME

6       outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl,
7       outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - port I/O
8

DESCRIPTION

10       This family of functions is used to do low-level port input and output.
11       The out* functions do port output, the in* functions do port input; the
12       b-suffix functions are byte-width  and  the  w-suffix  functions  word-
13       width; the _p-suffix functions pause until the I/O completes.
14
15       They  are  primarily  designed for internal kernel use, but can be used
16       from user space.
17
18       You compile with -O or -O2 or similar.  The functions  are  defined  as
19       inline  macros,  and  will  not  be substituted in without optimization
20       enabled, causing unresolved references at link time.
21
22       You use ioperm(2) or alternatively iopl(2) to tell the kernel to  allow
23       the  user space application to access the I/O ports in question.  Fail‐
24       ure to do this will cause the application  to  receive  a  segmentation
25       fault.
26

CONFORMING TO

28       outb() and friends are hardware-specific.  The value argument is passed
29       first and the port argument is passed second,  which  is  the  opposite
30       order from most DOS implementations.
31

SEE ALSO

33       ioperm(2), iopl(2)
34

COLOPHON

36       This  page  is  part of release 3.22 of the Linux man-pages project.  A
37       description of the project, and information about reporting  bugs,  can
38       be found at http://www.kernel.org/doc/man-pages/.
39
40
41
42Linux                             1995-11-29                           OUTB(2)
Impressum