STREAMS/UX for the HP 9000 Reference Manual

148
Debugging STREAMS/UX Modules and Drivers
STREAMS/UX Debugging Tool
'name' and minor number 'minor'
lm 'name' 'minor' - list all modules pushed on STREAMS device
'name' and whose minor number is 'minor'
lp 'name' 'minor' - list all drivers persistently linked under
the STREAMS device 'name' and minor number
'minor'
q - quit the STREAMS subsystem commands
qc 'driver' 'file' - print 'driver' read / write side qcount
to file
qh 'name' 'minor' - display STREAM head queue structure
for device 'name' and minor number
'minor'
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 = 0x00515500
-- 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 0x515500 S:1
q_qinfo = 0x2954f0 q_pad1[2] = 00
q_first = 0x50da00 q_other = 0x515574
q_last = 0x513780
q_next = 0x0
q_link = 0x0
q_ptr = 0x530600
q_count = 512
q_flag = 0x103d
QREADR
QFULL
QWANTR
QWANTW
QUSE
QSYNCH
q_minpsz = 0
q_maxpsz = -1