#include <sys/types.h> #include <sys/sdi.h> #include <sys/ddi.h>
void sdi_buf_store(buf_t *bp, daddr_t blkno)
b_iodonemember of the buf(D4) structure so it can be restored by the sdi_buf_restore(D3sdi) function. It also optionally saves or replaces the value of the
b_blknomember is not changed.
b_iodoneor, optionally, the
b_blknomember of a buf structure. It saves the previous values of these members in a privately-allocated bit of memory.
Calls to the sdi_buf_store( ) function must be matched by calls to the sdi_buf_restore(D3sdi) function before the buffer is returned to a higher context.
Driver-defined basic locks, read/write locks, and sleep locks cannot be held across calls to this function.