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 STRQSET 9F "Jan 16, 2006"
9 strqset \- change information about a queue or band of the queue
13 #include <sys/stream.h>
17 \fBint\fR \fBstrqset\fR(\fBqueue_t *\fR\fIq\fR, \fBqfields_t\fR \fIwhat\fR, \fBunsigned char\fR \fIpri\fR, \fBintptr_t\fR \fIval\fR);
23 Architecture independent level 1 (DDI/DKI).
40 Field of the \fBqueue\fR structure (or the specified priority band) to return
41 information about. Valid values are one of:
66 Largest packet accepted.
75 Smallest packet accepted.
86 Priority band of interest.
95 The value for the field to be changed.
101 The \fBstrqset()\fR function gives drivers and modules a way to change
102 information about a queue or a particular band of a queue without directly
103 accessing STREAMS data structures.
107 On success, \fB0\fR is returned. \fBEINVAL\fR is returned if an undefined
108 attribute is specified.
112 The \fBstrqset()\fR function can be called from user, interrupt, or kernel
117 \fBstrqget\fR(9F), \fBqueue\fR(9S)
120 \fIWriting Device Drivers\fR
123 \fISTREAMS Programming Guide\fR
127 When lowering existing values, set \fBQMINPSZ\fR before setting \fBQMAXPSZ\fR;
128 when raising existing values, set \fBQMAXPSZ\fR before setting \fBQMINPSZ\fR.