Understanding the tm_buf Structure

The tm_buf structure is used for communication between the SCSI device driver and the SCSI adapter device driver for a target-mode received-data buffer. The tm_buf structure is passed by pointer directly to routines whose entry points have been registered through the SCIOSTARTTGT ioctl operation of the SCSI adapter device driver.

The SCSI device driver is required to call this ioctl operation when opening a target-mode device instance.