DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

strqset(D3str)


strqset -- change information about a queue or band of the queue

Synopsis

   #include <sys/types.h>
   #include <sys/stream.h>
   #include <sys/ddi.h>
   

int strqset(queue_t *q, qfields_t what, uchar_t pri, long val);

Description

strqset gives drivers and modules a way to change information about a queue or a particular priority band of a queue without directly accessing STREAMS data structures.

Arguments


q
Pointer to the queue.

what
The field of the queue to change. Valid values for what are:


QHIWAT
High water mark of the specified priority band.

QLOWAT
Low water mark of the specified priority band.

QMAXPSZ
Maximum packet size of the specified priority band.

QMINPSZ
Minimum packet size of the specified priority band.

pri
Priority band of the queue to be changed.

val
New value for the field to be changed.

Return values

On success, 0 is returned. An error number is returned on failure.

Usage

Context

Base or Interrupt.

Synchronization constraints

Does not block.

Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.

The caller must have the stream frozen (see freezestr(D3str)) when calling this function.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

References

freezestr(D3str), queue(D4str), strqget(D3str), unfreezestr(D3str)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005