sdi_get_blkno( )
gets the value of blkno
from the
buf(D4)
structure that was previously saved by the
sdi_buf_store(D3sdi)
function.
Arguments
bp
Pointer to the previously saved
buf(D4)
structure.
Return values
If the buffer was previously the target
of a call to the
sdi_buf_store(D3sdi)
function,
sdi_get_blkno( )
returns the value for blkno that was saved.
Otherwise, it returns the value of
b_blkno from the buf structure.
Usage
sdi_get_blkno( )
is called
any time a driver wants to know the current value
of the b_blkno member of a buf structure.