Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversflushband(9F)


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

 

flushband() 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

 

flushband() can be called from user or interrupt context.

SEE ALSO

 

flushq(9F)

Writing Device Drivers STREAMS Programming Guide


SunOS 5.9Go To TopLast Changed 11 Apr 1991

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.