.TH inw() "" "" "DDI/DKI Kernel Routine"
.PC "Read a 16-bit word from an I/O port"
\fBushort_t inw(\fIport\^\fB)\fR
\fBint \fIport\^\fB;\fR
.PP
.B inw()
reads an unsigned short integer from
.IR port ,
which is a valid 16-bit I/O port, and returns it.
.SH "See Also"
.B
DDI/DKI kernel routines,
inb(),
inl(),
outb(),
outl(),
outw(),
repinsb(),
repinsd(),
repinsw(),
repoutsb(),
repoutsd(),
repoutsw()
.R
.SH Notes
.B inw()
has base or interrupt level.
It does not sleep.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep lock
across a call to this function.
