DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_get_blkno(D3sdi)


sdi_get_blkno -- retrieve stored blkno

Synopsis

   #include <sys/types.h>
   #include <sys/sdi.h>
   #include <sys/ddi.h>
   

daddr_t sdi_get_blkno(buf_t *bp)

Description

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.

Context and synchronization

Non-blockable context.

Hardware applicability

All

Version applicability

sdi: 4 layered drivers

References

buf(D4), sdi_buf_store(D3sdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005