STREAMS/UX for the HP 9000 Reference Manual
158
Debugging STREAMS/UX Modules and Drivers
STREAMS/UX Debugging Tool
o
struct queue 0x605e00 S:5
q_qinfo = 0x296418 q_pad1[2] = 00
q_first = 0x0 q_other = 0x605e74
q_last = 0x0
q_next = 0x5c1500
q_link = 0x0
q_ptr = 0x29ec48
q_count = 0
q_flag = 0x1129
QREADR
QWANTR
QUSE
QOLD
QSYNCH
q_minpsz = 0
q_maxpsz = 256
q_hiwat = 0x8000
q_lowat = 0x4000
q_bandp = 0x53b3c0
q_nband = 1
q_pad1[0] = 00
q_pad1[1] = 00
The user sees that there are no messages on the stream. Next, the user
examines sp's private data structure. The user enters the :b command,
specifying the q_ptr field value, 0x29ec48.
:b 0x29ec48
0x0029ec48 : 00000001 00605e00 00000000 005fb600 | .....`^......uq.
0x0029ec58 : 00000000 00000000 00000000 00000000 | ................
0x0029ec68 : 00000000 00000000 00000000 00000000 | ................
0x0029ec78 : 00000000 00000000 00000000 00000000 | ................
0x0029ec88 : 00000000 00000000 00000000 00000000 | ................
0x0029ec98 : 00000000 00000000 00000000 00000000 | ................
0x0029eca8 : 00000000 00000000 00000000 00000000 | ................
0x0029ecb8 : 00000000 00000000 00000000 00000000 | ................
0x0029ecc8 : 00000000 00000000 00000000 00000000 | ................
0x0029ecd8 : 00000000 00000000 00000000 00000000 | ................
0x0029ece8 : 00000000 00000000 00000000 00000000 | ................
0x0029ecf8 : 00000000 00000000 00000000 00000000 | ................
0x0029ed08 : 00000000 00000000 00000000 00000000 | ................
0x0029ed18 : 00000000 00000000 00000000 00000000 | ................
0x0029ed28 : 00000000 00000000 00000000 00000000 | ................
0x0029ed38 : 00000000 00000000 00000000 00000000 | ................
-- Hit any key to continue --
The user sees that the first word of sp's private data structure is 0x00000001.
Looking at the sp structure declaration shown above, this word is sp's state.
The driver is SPOPEN. The next word of sp's private structure is
0x00605e00. According to the sp struct declaration, this is sp's read queue