STREAMS/UX for the HP 9000 Reference Manual

128
Debugging STREAMS/UX Modules and Drivers
STREAMS/UX Debugging Tool
lp Command
Enter the lp command to see a list of drivers persistently linked under a
multiplexor. You must enter the multiplexor name and the minor number. An
example is shown below.
lp tmx 1
lo MAJOR = 75 minor = 2
lo MAJOR = 75 minor = 1
lo MAJOR = 75 minor = 0
qc Command
Enter the qc command to display the q_count field of a driver's read and
write queues. The q_count field contains the number of bytes of data in the
messages on the queue. The command will show the q_count values for all
the opened streams of the requested driver. You must enter the driver name
and the name of a file to contain the q_count values. strdb will create the
specified file and write the q_count values into it. An example is shown
below.
qc tmx stat
<< exit from strdb >>
%more stat
MINOR = 5
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 4214
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 0
MINOR = 4
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 842
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 0
MINOR = 1
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 930
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 0
MINOR = 0
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 0
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 0
MINOR = 3
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 3970
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 0
MINOR = 2
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 1300
WQ = 0x40026760, WQ_count = 0, RQ = 0x40026760, RQ_count = 0