STREAMS/UX for the HP 9000 Reference Manual
164
Debugging STREAMS/UX Modules and Drivers
STREAMS/UX Debugging Tool
s [m | d] - Option d lists all the STREAMS drivers
configured in the system. Option m lists
all the modules configured in the system
v - print version of STREAMS structures
displayed
Then the user enters the la command for lo to see what minor number the
driver assigned to the stream.
la lo
stack empty S:0
lo MAJOR = 75
ACTIVE Minor 0x000000 Stream head RQ = 0x005c1500
-- Hit any key to continue --
Next the user enters qh for lo and minor number 0 to start examining the
stream. strdb formats the stream head read queue.
qh lo 0
struct queue 0x5c1500 S:1
q_qinfo = 0x2944f0 q_pad1[2] = 00
q_first = 0x5e1480 q_other = 0x5eed74
q_last = 0x5e1480
q_next = 0x0
q_link = 0x0
q_ptr = 0x76bf00
q_count = 769
q_flag = 0x103d
QREADR
QFULL
QWANTR
QWANTW
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 notices that the stream head read queue contains several messages
that the test program should be able to read. In fact, the queue is full since
q_count is greater than q_hiwat, and the QFULL flag is set.