1backq(9F) Kernel Functions for Drivers backq(9F)
2
3
4
6 backq - get pointer to the queue behind the current queue
7
9 #include <sys/stream.h>
10
11
12
13 queue_t *backq(queue_t *cq);
14
15
17 Architecture independent level 1 (DDI/DKI).
18
20 cq The pointer to the current queue. queue_t is an alias for the
21 queue(9S) structure.
22
23
25 The backq() function returns a pointer to the queue preceding cq (the
26 current queue). If cq is a read queue, backq() returns a pointer to the
27 queue downstream from cq, unless it is the stream end. If cq is a write
28 queue, backq() returns a pointer to the next queue upstream from cq,
29 unless it is the stream head.
30
32 If successful, backq() returns a pointer to the queue preceding the
33 current queue. Otherwise, it returns NULL.
34
36 The backq() function can be called from user, interrupt, or kernel con‐
37 text.
38
40 queue(9S)
41
42
43 Writing Device Drivers
44
45
46 STREAMS Programming Guide
47
48
49
50SunOS 5.11 16 Jan 2006 backq(9F)