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/wgetdelay.3ncurses.html
wgetdelay(3ncurses) curses window properties (Man Page).....
This implementation provides functions which return properties set in the WINDOW structure, allowing it to be opaque if the symbol NCURSES_OPAQUE is defined: is
manpages/derwin.3ncurses.html
derwin(3ncurses) - create curses windows - Linux man page...
Calling newwin creates and returns a pointer to a new window with the given number of lines and columns. The upper left-hand corner of the window is at line beg
manpages/XkbResizeKeySyms.3.html
XkbResizeKeySyms(3) - Change the number of symbols bound to
XkbResizeKeySyms reserves the space needed for needed keysyms and returns a pointer to the beginning of the new array that holds the keysyms. It adjusts the off
manpages/gets.3.html
gets(3) - input of characters and strings - Linux man page
Never use this function. gets() reads a line from stdin into the buffer pointed to by s until either a terminating newline or EOF, which it replaces with a null
manpages/mev.1.html
mev(1) - a program to report mouse events - Linux man page
The mev program is part of the gpm package. The information below is extracted from the texinfo file, which is the preferred source of information. The mev prog
manpages/xdg-user-dir.1.html
xdg-user-dir(1) Find an XDG user dir - Linux manual page....
xdg-user-dir looks up the current path for one of the special XDG user dirs. This command expects the name of an XDG user dir as argument. The possible names ar
manpages/rake.1.html
rake(1) Ruby Make (Commands - Linux manual page)............
Rake is a simple ruby(1) build program with capabilities similar to the regular make(1) command. Rake has the following features: * Rakefiles (Rakes version of
manpages/Tcl_GetIntFromObj.3.html
Tcl_GetIntFromObj(3) - manipulate Tcl objects as integer val
These procedures are used to create, modify, and read Tcl objects that &#9474; hold integral values. &#9474; The different routines exist to accommodate differe
manpages/curl.1.html
curl(1) - transfer a URL (Commands - Linux manual page).....
curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS,
manpages/syscall.2.html
syscall(2) - indirect system call - Linux manual page.......
syscall() is a small library function that invokes the system call whose assembly language interface has the specified number with the specified arguments. Empl
manpages/nmcli-examples.5.html
nmcli-examples(5) usage examples of nmcli - Linux man page
nmcli is a command-line client for NetworkManager. It allows controlling NetworkManager and reporting its status. For more information please refer to nmcli(1)
manpages/Tk_FreeCursorFromObj.3.html
Tk_FreeCursorFromObj(3) - maintain database of cursors......
These procedures manage a collection of cursors being used by an application. The procedures allow cursors to be re-used efficiently, thereby avoiding server ov
