strqset(9F)
NAME
strqset − change information about a queue or band of the queue
SYNOPSIS
#include <sys/stream.h>
int strqset(queue_t ∗q, qfields_t what, unsigned char pri
, long val);
ARGUMENTS
q Pointer to the queue.
what Field of the queue structure to return information about. Valid values are:
QHIWAT High water mark.
QLOWAT Low water mark.
QMAXPSZ Largest packet accepted by QUEUE.
QMINPSZ Smallest packet accepted by QUEUE.
QCOUNT Approximate size of message queue.
QFIRST First message in the queue.
QLAST Last message in the queue.
QFLAG Status of the queue.
QBAD Priority band.
pri Priority of request.
val The value for the field to be changed.
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
DESCRIPTION
strqset() gives drivers and modules a way to change information about a queue or a particular band of a queue without directly accessing STREAMS data structures.
RETURN VALUES
On success, 0 is returned. An error number is returned on failure. If the what field is read-only, EPERM is returned and the field is left unchanged.
CONTEXT
strqset() can be called from user or interrupt context.
SEE ALSO
SunOS 5.1 Writing Device Drivers
SunOS 5.1 STREAMS Programmer’s Guide
SunOS 5.1 — Last change: 11 Apr 1991