Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #977
Difficulty: Medium
A Linux Kernel Code of Conflict was introduced on 8 March 2012.
True or False?
Linux & Unix Commands - Search Man Pages

outb(9f) [opensolaris man page]

outb(9F)						   Kernel Functions for Drivers 						  outb(9F)

NAME
outb, outw, outl, repoutsb, repoutsw, repoutsd - write to an I/O port SYNOPSIS
#include <sys/ddi.h> #include <sys/sunddi.h> void outb(int port, unsigned char value); void outw(int port, unsigned short value); void outl(int port, unsigned long value); void repoutsb(int port, unsigned char *addr, int count); void repoutsw(int port, unsigned short *addr, int count); void repoutsd(int port, unsigned long *addr, int count); INTERFACE LEVEL
The functions described here are obsolete. For the outb(), outw(), and outl() functions use, respectively, ddi_put8(9F), ddi_put8(9F), and ddi_put8(9F) instead. For repoutsb(), repoutsw(), andrepoutsl(), use, respectively, ddi_rep_put8(9F), ddi_rep_put8(9F), and ddi_rep_put8(9F) instead. PARAMETERS
port A valid I/O port address. value The data to be written to the I/O port. addr The address of a buffer from which the values will be fetched. count The number of values to be written to the I/O port. DESCRIPTION
These routines write data of various sizes to the I/O port with the address specified by port. The outb(), outw(), and outl() functions write 8 bits, 16 bits, and 32 bits of data respectively, writing the data specified by value. The repoutsb(), repoutsw(), and repoutsd() functions write multiple 8-bit, 16-bit, and 32-bit values, respectively. count specifies the number of values to be written. addr is a pointer to a buffer from which the output values are fetched. CONTEXT
These functions may be called from user, interrupt, or kernel context. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |x86 | +-----------------------------+-----------------------------+ |Interface Stability |Obsolete | +-----------------------------+-----------------------------+ SEE ALSO
isa(4), attributes(5), ddi_put8(9F), ddi_put8(9F), ddi_put8(9F), ddi_rep_put8(9F), ddi_rep_put8(9F), ddi_rep_put8(9F), inb(9F) Writing Device Drivers SunOS 5.11 16 Jan 2006 outb(9F)

Check Out this Related Man Page

outb(9F)						   Kernel Functions for Drivers 						  outb(9F)

NAME
outb, outw, outl, repoutsb, repoutsw, repoutsd - write to an I/O port SYNOPSIS
#include <sys/ddi.h> #include <sys/sunddi.h> void outb(int port, unsigned char value); void outw(int port, unsigned short value); void outl(int port, unsigned long value); void repoutsb(int port, unsigned char *addr, int count); void repoutsw(int port, unsigned short *addr, int count); void repoutsd(int port, unsigned long *addr, int count); INTERFACE LEVEL
The functions described here are obsolete. For the outb(), outw(), and outl() functions use, respectively, ddi_put8(9F), ddi_put8(9F), and ddi_put8(9F) instead. For repoutsb(), repoutsw(), andrepoutsl(), use, respectively, ddi_rep_put8(9F), ddi_rep_put8(9F), and ddi_rep_put8(9F) instead. PARAMETERS
port A valid I/O port address. value The data to be written to the I/O port. addr The address of a buffer from which the values will be fetched. count The number of values to be written to the I/O port. DESCRIPTION
These routines write data of various sizes to the I/O port with the address specified by port. The outb(), outw(), and outl() functions write 8 bits, 16 bits, and 32 bits of data respectively, writing the data specified by value. The repoutsb(), repoutsw(), and repoutsd() functions write multiple 8-bit, 16-bit, and 32-bit values, respectively. count specifies the number of values to be written. addr is a pointer to a buffer from which the output values are fetched. CONTEXT
These functions may be called from user, interrupt, or kernel context. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |x86 | +-----------------------------+-----------------------------+ |Interface Stability |Obsolete | +-----------------------------+-----------------------------+ SEE ALSO
isa(4), attributes(5), ddi_put8(9F), ddi_put8(9F), ddi_put8(9F), ddi_rep_put8(9F), ddi_rep_put8(9F), ddi_rep_put8(9F), inb(9F) Writing Device Drivers SunOS 5.11 16 Jan 2006 outb(9F)

Featured Tech Videos