|
|
NAME
buf - Print information about an I/O buf structure
SYNOPSIS
buf address
buf+ address
buf- address
bufv address
DESCRIPTION
The buf macros take one argument, the address of a buf
structure. These structures are used by the kernel to
do block-oriented I/O, primarily to and from disk.
The macros buf+, buf- and bufv print the same information as buf, but set up the nx command to automatically point to the next buffer:
buf+ steps to the next physical buf (addr + sizeof(buf))
buf- steps to the address in the b_forw field
bufv steps to the address in the av_forw field
To obtain the address of a buf structure, first run the 'pty' macro and then use the PT_BUFP address as an argument to buf.
Also, processes can sleep on buffers so you can use that address as well.
Typical output looks like this:
S> buf D13E3260 [D13E3260] flags 0: WRITE edev D13F2000 forw 00000000 resid 00000002 cylin D13E blkno D13EE000 back 00000000 proc 00000009 vnode D138F7B0 addr 00000000 av_f D13C0324 pages 0000000E chain 00000000 bcount 0000FB00 av_b D13C0324 error D13EE000 size D13EE000 start D13E32C4 reltime D13E3280