1flushband(9F) Kernel Functions for Drivers flushband(9F)
2
3
4
6 flushband - flush messages for a specified priority band
7
9 #include <sys/stream.h>
10
11
12
13 void flushband(queue_t *q, unsigned char pri, int flag);
14
15
17 Architecture independent level 1 (DDI/DKI).
18
20 q Pointer to the queue.
21
22
23 pri Priority of messages to be flushed.
24
25
26 flag Valid flag values are:
27
28
29 FLUSHDATA Flush only data messages (types M_DATA, M_DELAY, M_PROTO,
30 and M_PCPROTO ).
31
32
33 FLUSHALL Flush all messages.
34
35
37 The flushband() function flushes messages associated with the priority
38 band specified by pri. If pri is 0, only normal and high priority mes‐
39 sages are flushed. Otherwise, messages are flushed from the band pri
40 according to the value of flag.
41
43 The flushband() function can be called from user, interrupt, or kernel
44 context.
45
47 flushq(9F)
48
49
50 Writing Device Drivers STREAMS Programming Guide
51
52
53
54SunOS 5.11 16 Jan 2006 flushband(9F)