STREAMS/UX for the HP 9000 Reference Manual

145
Debugging STREAMS/UX Modules and Drivers
STREAMS/UX Debugging Tool
Enter the :S command to switch from primary mode to STREAMS/UX
subsystem mode. After invoking strdb, you are in primary mode. Enter :S
to switch to STREAMS/UX subsystem mode. In STREAMS/UX subsystem
mode, you can see which STREAMS/UX are configured and active on the
system. An example is shown below.
strdb
No current structure S:0
:S
STREAMS subsystem help commands..
? - show this help menu
h - show this help menu
la 'name' - list all active STREAMS on device 'name'
ll 'name' 'minor' - list all drivers linked under the STREAMS
driver '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
Debugging with strdb
This section shows examples of using strdb to debug STREAMS/UX drivers
and modules. The examples show how to use strdb on a running system.
The adb debugging section of this chapter shows an example of using strdb
in conjunction with adb to analyze an HP-UX core file.