2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
3 .\" Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH STRQGET 9F "Jan 16, 2006"
9 strqget \- get information about a queue or band of the queue
13 #include <sys/stream.h>
17 \fBint\fR \fBstrqget\fR(\fBqueue_t *\fR\fIq\fR, \fBqfields_t\fR \fIwhat\fR, \fBunsigned char\fR \fIpri\fR, \fBvoid *\fR\fIvalp\fR);
23 Architecture independent level 1 (DDI/DKI).
40 Field of the \fBqueue\fR structure for (or the specified priority band) to
41 return information about. Valid values are one of:
66 Largest packet accepted.
75 Smallest packet accepted.
84 Approximate size (in bytes) of data.
122 Priority band of interest.
131 The address of where to store the value of the requested field.
137 The \fBstrqget()\fR function gives drivers and modules a way to get information
138 about a queue or a particular band of a queue without directly accessing
139 STREAMS data structures, thus insulating them from changes in the
140 implementation of these data structures from release to release.
144 On success, \fB0\fR is returned and the value of the requested field is stored
145 in the location pointed to by \fIvalp\fR. An error number is returned on
150 The \fBstrqget()\fR function can be called from user, interrupt, or kernel
155 \fBstrqset\fR(9F), \fBqueue\fR(9S)
158 \fIWriting Device Drivers\fR
161 \fISTREAMS Programming Guide\fR