DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

repinsb(D3)


repinsb -- read bytes from I/O port to buffer

Synopsis

   #include <sys/types.h>
   #include <sys/ddi.h>
   

void repinsb(int port, uchar_t *addr, int cnt);

Description

The repinsb function provides a C language interface to the machine instructions that read a string of bytes from an 8 bit I/O port using the I/O address space, instead of the memory address space. The data from cnt reads of the I/O port is stored in the data buffer pointed to by addr.

Arguments


port
A valid 8 bit I/O port.

addr
The address of the buffer where data is stored after cnt reads of the I/O port.

cnt
The number of bytes to be read from the I/O port.

Return values

None

Usage

The data buffer should be at least cnt bytes in length.

Context and synchronization

All contexts.

Hardware applicability

Intel IA-32 compatible platforms

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

References

inb(D3), inl(D3), inw(D3), outb(D3), outl(D3), outw(D3), repinsd(D3), repinsw(D3), repoutsb(D3), repoutsd(D3), repoutsw(D3)

``Programmed I/O (PIO)'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005