xref: /titanic_41/usr/src/man/man9f/flushband.9f (revision 33f5ff17089e3a43e6e730bf80384c233123dbd9)
te
Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
Copyright 1989 AT&T
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.
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.
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]
FLUSHBAND 9F "Jan 16, 2006"
NAME
flushband - flush messages for a specified priority band
SYNOPSIS

#include <sys/stream.h>



void flushband(queue_t *q, unsigned char pri, int flag);
INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI).

PARAMETERS
q

Pointer to the queue.

pri

Priority of messages to be flushed.

flag

Valid flag values are:

FLUSHDATA

Flush only data messages (types M_DATA, M_DELAY, M_PROTO, and M_PCPROTO ).

FLUSHALL

Flush all messages.

DESCRIPTION

The flushband() function flushes messages associated with the priority band specified by pri. If pri is 0, only normal and high priority messages are flushed. Otherwise, messages are flushed from the band pri according to the value of flag.

CONTEXT

The flushband() function can be called from user, interrupt, or kernel context.

SEE ALSO

flushq(9F)

Writing Device Drivers STREAMS Programming Guide