STREAMS/UX for the HP 9000 Reference Manual

137
Debugging STREAMS/UX Modules and Drivers
STREAMS/UX Debugging Tool
after strdb displayed the write queue below the stream head write queue.
Then in the current example, CTRL-U could be entered to pop back to this
queue. This is shown below.
^U
struct queue 0x21f7674 S:3
q_qinfo = 0x1f7924 q_pad1[2] = 00
q_first = 0x2156780 q_other = 0x21f7600
q_last = 0x2185800
q_next = 0x0
q_link = 0x0
q_ptr = 0x0029cc48
q_count = 22518
q_flag = 0x1120
QUSE
QOLD
QSYNCH
q_minpsz = 0
q_maxpsz = -1
q_hiwat = 0x8000
q_lowat = 0x4000
q_bandp = 0x0
q_nband = 0
q_pad1[0] = 00
q_pad1[1] = 00
When you enter the CTRL-U command, strdb prints the data it saved in the
marked entry. If you are running strdb on a running system instead of a core
file, the data may not be current. In the above example, the queue may
contain different data when CTRL-U is entered than it did when the contents
of the queue were pushed on the stack. To see the current values, enter the
CTRL-R command. CTRL-R updates the displayed data structure with new
values from /dev/kmem. This is shown below. Notice that there are no
longer any messages in the queue.
^R
struct queue 0x21f7674 S:3
q_qinfo = 0x1f7924 q_pad1[2] = 00
q_first = 0x0 q_other = 0x21f7600
q_last = 0x0
q_next = 0x0
q_link = 0x0
q_ptr = 0x0029cc48
q_count = 0
q_flag = 0x1120
QUSE
QOLD
QSYNCH