[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Kernel Extensions and Device Support Programming Concepts

Understanding the scsi_buf Structure

The scsi_buf structure is used for communication between the device driver and the adapter device driver during an initiator I/O request. This structure is passed to and from the strategy routine in the same way a standard driver uses a struct buf structure.

Fields in the scsi_buf Structure

The scsi_buf structure contains certain fields used to pass a command and associated parameters to the adapter device driver. Other fields within this structure are used to pass returned status back to the device driver. The scsi_buf structure is defined in the /usr/include/sys/scsi_buf.h file.

Fields in the scsi_buf structure are used as follows:

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]