.TH ioread() "" "" "Internal Kernel Routine"
.PC "Read from I/O segment"
.B "#include <sys/io.h>"
\fBvoid ioread(\fIiop\^\fB, \fIv\^\fB, \fIn\^\fB)\fR
\fBIO *\fIiop\^\fB; char *\fIv\^\fB; unsigned \fIn\^\fB;\fR
.PP
.B ioread()
copies
.I n
bytes from the I/O segment referenced by
.I iop
to address
.I v
in the kernel's data segment.
If an address fault occurs, it calls
.B set_user_error()
with value
.BR EFAULT .
.SH "See Also"
.B
internal kernel routines
.R
