STREAMS/UX for the HP 9000 Reference Manual
142
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
qh tmx 1
struct queue 0x20a2300 S:1
q_qinfo = 0x1f7a18 q_pad1[2] = 00
q_first = 0x0 q_other = 0x20a2374
q_last = 0x0
q_next = 0x0
q_link = 0x0
q_ptr = 0x206d900
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
: ^k (screen data is dumped to strdb.log)
:l strdb.log c
:u and :s
When you enter strdb, data structure stacking is enabled. Each time strdb
displays a data structure, it pushes it onto a stack. strdb increments and
displays the stack depth. Data structure stacking is useful for going back
and reviewing data structures that strdb has already displayed. This is
described in the previous section, “Data Structure Navigation Commands.”