.TH strqget() "" "" "DDI/DKI Kernel Routine"
.PC "Get information about a priority band"
.B "#include <sys/stream.h>"
\fBint strqget(\fIqueue\^\fB, \fIdatum\^\fB, \fIpriority\^\fB, \fIvalue\^\fB)\fR
\fBqueue_t *\fIqueue\^\fB; qfields_t \fIdatum\^\fB;\fR
\fBuchar_t \fIpriority\^\fB; long *\fIvalue\^\fB;\fR
.PP
.B strqget()
retrieves
.I datum
that describes
priority band
.I priority
within
.IR queue .
It writes
.I datum
at address
.IR value .
If all goes well,
.B strqget()
returns zero; otherwise, it returns an appropriate, non-zero error number.
.PP
.B strqget()
recognizes the following values for
.IR datum :
.IP \fBQHIWAT\fR 1.0i
The high-water mark.
.IS \fBQLOWAT\fR
The low-water mark.
.IS \fBQMAXPSZ\fR
The maximum size of a packet.
.IS \fBQMINPSZ\fR
The minimum size of a packet.
.IS \fBQCOUNT\fR
The number of bytes of data in messages.
.IS \fBQFIRST\fR
The address of the first message.
.IS \fBQLAST\fR
The address of the last message.
.IS \fBQFLAG\fR
Its flags.
.SH "See Also"
.B
DDI/DKI kernel routines,
queue,
strqset()
.R
.SH Notes
.B strqget()
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.
.PP
The caller must have the stream frozen when calling this function.
