sourCEntral - mobile manpages

pdf

outb

NOMBRE

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

BIBLIOTECA

Biblioteca Estándar C (libc, -lc)

SINOPSIS

#include <sys/io.h>

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

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

void insb(unsigned short port, void addr[.count],
unsigned long
count);
void insw(unsigned short
port, void addr[.count],
unsigned long
count);
void insl(unsigned short
port, void addr[.count],
unsigned long
count);
void outsb(unsigned short
port, const void addr[.count],
unsigned long
count);
void outsw(unsigned short
port, const void addr[.count],
unsigned long
count);
void outsl(unsigned short
port, const void addr[.count],
unsigned long
count);

DESCRIPCIÓN

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.

Están diseñadas principalmente para uso interno del núcleo, pero pueden ser empleadas desde el espacio del usuario.

Debe compilarse con -O o -O2 o similar. Las funciones están definidas como macros en línea del preprocesador, y no serán sustituidas sin la opción de optimización activada, provocando referencias no resueltas durante el enlazado.

Debe emplearse ioperm(2) o alternativamente iopl(2) para decirle al núcleo que permita a la aplicación en el espacio de usuario el acceso a los puertos de E/S en cuestión. Si no hace esto la aplicación recibirá un error de segmentación.

ESTÁNDARES

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.

VÉASE TAMBIÉN

ioperm(2), iopl(2)

TRADUCCIÓN

La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García <gerardo DOT aburruzaga AT uca DOT es> y Marcos Fouces <marcos AT debian DOT org>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish.

pdf