STREAMS/UX for the HP 9000 Reference Manual
156
Debugging STREAMS/UX Modules and Drivers
STREAMS/UX Debugging Tool
all the modules configured in the system
v - print version of STREAMS structures
displayed
Then the user enters the la command for sp to see what minor number the
driver assigned to the stream.
la sp
stack empty S:0
sp MAJOR = 115
ACTIVE Minor 0x000000 Stream head RQ = 0x005c1500
-- Hit any key to continue --
Next, the user enters the qh command for sp and minor number 0 to start
examining the stream. strdb formats the stream head read queue.
qh sp 0
struct queue 0x5c1500 S:1
q_qinfo = 0x2964f0 q_pad1[2] = 00
q_first = 0x0 q_other = 0x5c1574
q_last = 0x0
q_next = 0x0
q_link = 0x0
q_ptr = 0x5f0100
q_count = 0
q_flag = 0x1029
QREADR
QWANTR
QUSE
QSYNCH
q_minpsz = 0
q_maxpsz = -1
q_hiwat = 0x200
q_lowat = 0x100
q_bandp = 0x0
q_nband = 0
q_pad1[0] = 00
q_pad1[1] = 00
The user sees that there are no messages on the stream head read queue. The
user decides to look for messages on other queues in the stream. The user
enters the o key to see the other queue in this pair, the stream head write
queue.