.TH SAMESTR() "" "" "DDI/DKI Kernel Routine"
.PC "Check type of next queue"
.B "#include <sys/stream.h>"
\fBint SAMESTR(\fIqueue\^\fB)\fR
\fBqueue_t *\fIqueue\^\fB;\fR
.PP
.B SAMESTR()
checks whether the next queue in a stream is of the same type as
.IR queue .
It returns one if the next queue is the same type as
.IR queue ;
it returns zero if it is not, or if there is no next queue.
.SH "See Also"
.B
DDI/DKI kernel routines,
OTHERQ()
.R
.SH Notes
.B SAMESTR()
has base or interrupt level.
It does not sleep.
.PP
A driver cannot hold a
driver-defined basic lock, read/write lock, or sleep lock
across a call to this function.
.PP
The caller cannot have the stream frozen when calling this function.
