outsl(2)


NAME

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

SYNOPSIS

   #include <sys/io.h>

   unsigned char inb(unsigned short int port);
   unsigned char inb_p(unsigned short int port);
   unsigned short int inw(unsigned short int port);
   unsigned short int inw_p(unsigned short int port);
   unsigned int inl(unsigned short int port);
   unsigned int inl_p(unsigned short int port);

   void outb(unsigned char value, unsigned short int port);
   void outb_p(unsigned char value, unsigned short int port);
   void outw(unsigned short int value, unsigned short int port);
   void outw_p(unsigned short int value, unsigned short int port);
   void outl(unsigned int value, unsigned short int port);
   void outl_p(unsigned int value, unsigned short int port);

   void insb(unsigned short int port, void *addr,
              unsigned long int count);
   void insw(unsigned short int port, void *addr,
              unsigned long int count);
   void insl(unsigned short int port, void *addr,
              unsigned long int count);
   void outsb(unsigned short int port, const void *addr,
              unsigned long int count);
   void outsw(unsigned short int port, const void *addr,
              unsigned long int count);
   void outsl(unsigned short int port, const void *addr,
              unsigned long int count);

DESCRIPTION

   This family of functions is used to do low-level port input and output.
   The out* functions do port output, the in* functions do port input; the
   b-suffix functions are byte-width  and  the  w-suffix  functions  word-
   width; the _p-suffix functions pause until the I/O completes.

   They  are  primarily  designed for internal kernel use, but can be used
   from user space.

   You must compile with -O or -O2 or similar.  The functions are  defined
   as  inline  macros, and will not be substituted in without optimization
   enabled, causing unresolved references at link time.

   You use ioperm(2) or alternatively iopl(2) to tell the kernel to  allow
   the  user  space  application  to  access  the  I/O  ports in question.
   Failure to do this will cause the application to receive a segmentation
   fault.

CONFORMING TO

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

SEE ALSO

   ioperm(2), iopl(2)

COLOPHON

   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at
   https://www.kernel.org/doc/man-pages/.


More Linux Commands

manpages/yaz-ztest.8.html
yaz-ztest(8) - Z39 (Administration - Linux man page)........
yaz-ztest is a Z39.50/SRU test server that uses the YAZ generic frontend server (GFS) API. The server acts as a real Z39.50/SRU server but does not use a databa

manpages/get_nprocs_conf.3.html
get_nprocs_conf(3) get number of processors - Linux man page
The function get_nprocs_conf() returns the number of processors configured by the operating system. The function get_nprocs() returns the number of processors c

manpages/printf.1.html
printf(1) - format and print data - Linux manual page.......
Print ARGUMENT(s) according to FORMAT, or execute according to OPTION: --help display this help and exit --version output version information and exit FORMAT co

manpages/inotify.7.html
inotify(7) - monitoring file system events - Linux man page
The inotify API provides a mechanism for monitoring filesystem events. Inotify can be used to monitor individual files, or to monitor directories. When a direct

manpages/wait3.2.html
wait3(2) - wait for process to change state, BSD style......
These functions are obsolete; use waitpid(2) or waitid(2) in new programs. The wait3() and wait4() system calls are similar to waitpid(2), but additionally retu

manpages/ppmshadow.1.html
ppmshadow(1) - add simulated shadows to a PPM image.........
This program is part of Netpbm(1) ppmshadow adds a simulated shadow to an image, giving the appearance that the contents of the image float above the page, cast

manpages/dsp56k.4.html
dsp56k(4) - DSP56001 interface device - Linux manual page...
The Motorola DSP56001 is a fully programmable 24-bit digital signal processor found in Atari Falcon030-compatible computers. The dsp56k special file is used to

manpages/dbus-daemon.1.html
dbus-daemon(1) - Message bus daemon - Linux manual page.....
dbus-daemon is the D-Bus message bus daemon. See http://www.freedesktop.org/software/dbus/ for more information about the big picture. D-Bus is first a library

manpages/pdfmom.1.html
pdfmom(1) Produce PDF documents using the mom macro set.....
pdfmom is a wrapper around groff that facilitates the production of PDF documents from files formatted with the mom macros. pdfmom prints to stdout, so output m

manpages/fprint_objid.3.html
fprint_objid(3) - netsnmp_mib_api functions - Linux man page
The functions dealing with MIB modules fall into four groups - those dealing with initialisation and shutdown, with reading in and parsing MIB files, with searc

manpages/XCompositeCreateRegionFromBorderClip.3.html
XCompositeCreateRegionFromBorderClip(3) - X Composite Extens
The composite extension provides several related mechanisms: Per-hierarchy storage The rendering of an entire hierarchy of windows is redirected to off-screen s

manpages/libgphoto2.3.html
libgphoto2(3) - cross-platform digital camera library.......
The gphoto2 library provides applications with access to a variety of cameras. This man page will be extended with autogenerated documentation of the interface





We can't live, work or learn in freedom unless the software we use is free.